mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
a0c396f5cf
commit
7507c96dcd
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue