projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e8c99
)
SamplingBar: Only use DefaultSampleCount if the _sample_count widget is unset.
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 1 Mar 2014 16:30:07 +0000
(16:30 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 1 Mar 2014 16:30:13 +0000
(16:30 +0000)
This fixes bug #324
pv/toolbars/samplingbar.cpp
patch
|
blob
|
history
diff --git
a/pv/toolbars/samplingbar.cpp
b/pv/toolbars/samplingbar.cpp
index be29e74bb534643183fd739e5d1785f63f974e22..dce7aa38417753c7927f3eefa0c23cd0369b7ae4 100644
(file)
--- a/
pv/toolbars/samplingbar.cpp
+++ b/
pv/toolbars/samplingbar.cpp
@@
-264,10
+264,13
@@
void SamplingBar::update_sample_count_selector()
if (_sample_count_supported)
{
- uint64_t sample_count =
DefaultSampleCount
;
+ uint64_t sample_count =
_sample_count.value()
;
uint64_t min_sample_count = 0;
uint64_t max_sample_count = MaxSampleCount;
+ if (sample_count == 0)
+ sample_count = DefaultSampleCount;
+
if ((gvar = dev_inst->list_config(NULL, SR_CONF_LIMIT_SAMPLES)))
{
g_variant_get(gvar, "(tt)",