summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-16 10:52:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-16 10:52:45 -0700
commit35d6cf8000708c16fac99ae636dafacc6c79a23f (patch)
tree47b352c6cc9f6334383a1b132736c4f9ddff53a8 /qt-ui
parent84aab5ffedc6f9c1eebace215b5614a118a9280b (diff)
downloadsubsurface-35d6cf8000708c16fac99ae636dafacc6c79a23f.tar.gz
Make sure the dive site edit widget is current when switching to it
Otherwise it will show outdated information. If the user edits the location name and then clicks 'manage' we need to make sure that the correct site is shown. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index f8335affb..9921ac143 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -221,6 +221,7 @@ LocationInformationWidget *MainWindow::locationInformationWidget() {
}
void MainWindow::enableDiveSiteEdit(uint32_t id) {
+ locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid);
setApplicationState("EditDiveSite");
}