diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-03 22:44:16 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-03 21:31:51 -0700 |
commit | 7507c96dcdae77fadaacdd10d671816797b5be44 (patch) | |
tree | ecd713da9f0152a19390df677bf0cb3bf8cbd882 /qt-ui | |
parent | a0c396f5cf4d872aa863852372f8c5b28fb41e42 (diff) | |
download | subsurface-7507c96dcdae77fadaacdd10d671816797b5be44.tar.gz |
Do not trigger a dive site change when setting a dive
When setting a dive, we fire the dive site change a few times after the
index of the QComboBox is changed; we don't need that - fire just once.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 16e424c21..bd893e2da 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -467,6 +467,7 @@ void MainTab::updateDiveInfo(bool clear) process_selected_dives(); process_all_dives(&displayed_dive, &prevd); + ui.location->blockSignals(true); divePictureModel->updateDivePictures(); @@ -708,6 +709,9 @@ void MainTab::updateDiveInfo(bool clear) ui.cylinders->view()->showColumn(CylindersModel::USE); else ui.cylinders->view()->hideColumn(CylindersModel::USE); + + ui.location->blockSignals(false); + emit diveSiteChanged(); } void MainTab::addCylinder_clicked() |