From: Joel Holdsworth Date: Thu, 11 Oct 2012 20:19:08 +0000 (+0100) Subject: Fixed zero samplerate issue X-Git-Tag: pulseview-0.1.0~283 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f6be4120bd57c25e13bb5e54f237728692c80dee;p=pulseview.git Fixed zero samplerate issue --- diff --git a/samplingbar.cpp b/samplingbar.cpp index 711f6f4e..4ff27ead 100644 --- 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(); + return _sample_rate_list.itemData(index).value(); } return 0;