diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-03-16 10:52:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-16 10:52:45 -0700 |
commit | 35d6cf8000708c16fac99ae636dafacc6c79a23f (patch) | |
tree | 47b352c6cc9f6334383a1b132736c4f9ddff53a8 /qt-ui | |
parent | 84aab5ffedc6f9c1eebace215b5614a118a9280b (diff) | |
download | subsurface-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.cpp | 1 |
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"); } |