mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
fix: dso view can't restore scale whith mouse wheel
This commit is contained in:
parent
a3d3ebc05b
commit
d80fd63108
@ -722,6 +722,9 @@ double SamplingBar::hori_knob(int dir)
|
|||||||
{
|
{
|
||||||
double hori_res = -1;
|
double hori_res = -1;
|
||||||
|
|
||||||
|
disconnect(&_sample_count, SIGNAL(currentIndexChanged(int)),
|
||||||
|
this, SLOT(on_samplecount_sel(int)));
|
||||||
|
|
||||||
if (0 == dir) {
|
if (0 == dir) {
|
||||||
hori_res = commit_hori_res();
|
hori_res = commit_hori_res();
|
||||||
} else if ((dir > 0) && (_sample_count.currentIndex() > 0)) {
|
} else if ((dir > 0) && (_sample_count.currentIndex() > 0)) {
|
||||||
@ -732,9 +735,6 @@ double SamplingBar::hori_knob(int dir)
|
|||||||
hori_res = commit_hori_res();
|
hori_res = commit_hori_res();
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect(&_sample_count, SIGNAL(currentIndexChanged(int)),
|
|
||||||
this, SLOT(on_samplecount_sel(int)));
|
|
||||||
|
|
||||||
connect(&_sample_count, SIGNAL(currentIndexChanged(int)),
|
connect(&_sample_count, SIGNAL(currentIndexChanged(int)),
|
||||||
this, SLOT(on_samplecount_sel(int)));
|
this, SLOT(on_samplecount_sel(int)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user