summaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r--qt-ui/locationinformation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 3655d4dc3..3dc46a603 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -144,6 +144,12 @@ void LocationInformationWidget::markChangedWidget(QWidget *w)
void LocationInformationWidget::resetState()
{
+ if (displayed_dive.id) {
+ struct dive_site *ds = get_dive_site_by_uuid(displayed_dive.dive_site_uuid);
+ if(ds) {
+ displayed_dive_site = *ds;
+ }
+ }
modified = false;
resetPallete();
MainWindow::instance()->dive_list()->setEnabled(true);