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>
This commit is contained in:
Dirk Hohndel 2015-03-16 10:52:45 -07:00
parent 84aab5ffed
commit 35d6cf8000

View file

@ -221,6 +221,7 @@ LocationInformationWidget *MainWindow::locationInformationWidget() {
}
void MainWindow::enableDiveSiteEdit(uint32_t id) {
locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid);
setApplicationState("EditDiveSite");
}