fix: dso view can't restore scale whith mouse wheel

This commit is contained in:
dreamsourcelabTAI 2022-07-18 15:20:24 +08:00
parent a3d3ebc05b
commit d80fd63108

View File

@ -722,6 +722,9 @@ double SamplingBar::hori_knob(int dir)
{
double hori_res = -1;
disconnect(&_sample_count, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_samplecount_sel(int)));
if (0 == dir) {
hori_res = commit_hori_res();
} else if ((dir > 0) && (_sample_count.currentIndex() > 0)) {
@ -732,9 +735,6 @@ double SamplingBar::hori_knob(int dir)
hori_res = commit_hori_res();
}
disconnect(&_sample_count, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_samplecount_sel(int)));
connect(&_sample_count, SIGNAL(currentIndexChanged(int)),
this, SLOT(on_samplecount_sel(int)));