X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=samplingbar.cpp;h=b2ca6e066980fe8b1b36d7f7e06eb3771a8154b5;hb=8f94be14588c7a7ca0f483b649d7a7b5b5f45ae9;hp=711f6f4eae92ebc265d63c1d321f8d81f61cb391;hpb=215f9499495716d6a33b53b0fa9cac47f0e43fbd;p=pulseview.git diff --git a/samplingbar.cpp b/samplingbar.cpp index 711f6f4..b2ca6e0 100644 --- a/samplingbar.cpp +++ b/samplingbar.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -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;