From 35d6cf8000708c16fac99ae636dafacc6c79a23f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 16 Mar 2015 10:52:45 -0700 Subject: 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 --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') 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"); } -- cgit v1.2.3-70-g09d2