projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dfbf7f
)
Fixed zero samplerate issue
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 11 Oct 2012 20:19:08 +0000
(21:19 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 11 Oct 2012 20:19:08 +0000
(21:19 +0100)
samplingbar.cpp
patch
|
blob
|
history
diff --git
a/samplingbar.cpp
b/samplingbar.cpp
index 711f6f4eae92ebc265d63c1d321f8d81f61cb391..4ff27eadd97e350793adae82fcac128c0da5a227 100644
(file)
--- a/
samplingbar.cpp
+++ b/
samplingbar.cpp
@@
-106,11
+106,11
@@
uint64_t SamplingBar::get_sample_rate() const
return (uint64_t)_sample_rate_value.value();
else if(_sample_rate_list_action->isVisible())
{
- const int index = _
device_selector
.currentIndex();
+ const int index = _
sample_rate_list
.currentIndex();
if(index < 0)
return 0;
- return _
device_selector
.itemData(index).value<uint64_t>();
+ return _
sample_rate_list
.itemData(index).value<uint64_t>();
}
return 0;