]> sigrok.org Git - pulseview.git/commitdiff
Fixed zero samplerate issue
authorJoel Holdsworth <redacted>
Thu, 11 Oct 2012 20:19:08 +0000 (21:19 +0100)
committerJoel Holdsworth <redacted>
Thu, 11 Oct 2012 20:19:08 +0000 (21:19 +0100)
samplingbar.cpp

index 711f6f4eae92ebc265d63c1d321f8d81f61cb391..4ff27eadd97e350793adae82fcac128c0da5a227 100644 (file)
@@ -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;