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:
Tomaz Canabrava 2015-06-03 22:44:16 -03:00 committed by Dirk Hohndel
parent a0c396f5cf
commit 7507c96dcd

View file

@ -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()