summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-15 17:52:19 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit3a3089770a5af9ef421779186f4dd47b01611ad2 (patch)
treec50384a9d2fa3e94666ce7c5ab13ec904d8bf95d /desktop-widgets/locationinformation.cpp
parent59239cec02aedda8c2651a04c65c580a9ff190a9 (diff)
downloadsubsurface-3a3089770a5af9ef421779186f4dd47b01611ad2.tar.gz
Cleanup: remove LocationInformationWidget::endEditDiveSite signal
The signal was caught by the MainWindow to: 1) call setDefaultState() 2) call refreshDisplay() 3) call refreshDisplayedDiveSite() 1) Let's call that directly from the widget. The reason is that in the future there might be multiple way to get into the widget and therefore the widget needs finer control. 2) Remove this call as it produces an unsteady UI. 3) This should be done by undo commands, not only when finishing dive site editing. Thus, the signal becomes unnecessary and can be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-rw-r--r--desktop-widgets/locationinformation.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index 330ccd6f5..3c09656f1 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -164,7 +164,6 @@ void LocationInformationWidget::acceptChanges()
MapWidget::instance()->endGetDiveCoordinates();
MapWidget::instance()->repopulateLabels();
MultiFilterSortModel::instance()->stopFilterDiveSite();
- emit endEditDiveSite();
}
void LocationInformationWidget::initFields(dive_site *ds)