summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index e1ad6b861..08e6f1d41 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -740,6 +740,8 @@ void LocationInformationWidget::acceptChanges()
setLocationId(currentDs->uuid);
}
mark_divelist_changed(true);
+ resetPallete();
+ ui.diveSiteNotes->hide();
emit informationManagementEnded();
}
@@ -753,6 +755,8 @@ void LocationInformationWidget::rejectChanges()
} else {
setLocationId(currentDs->uuid);
}
+ resetPallete();
+ ui.diveSiteNotes->hide();
emit informationManagementEnded();
}
@@ -800,3 +804,12 @@ void LocationInformationWidget::on_diveSiteNotes_textChanged()
if (!same_string(qPrintable(ui.diveSiteNotes->toPlainText()), currentDs->notes))
markChangedWidget(ui.diveSiteNotes);
}
+
+void LocationInformationWidget::resetPallete()
+{
+ QPalette p;
+ ui.diveSiteCoordinates->setPalette(p);
+ ui.diveSiteDescription->setPalette(p);
+ ui.diveSiteName->setPalette(p);
+ ui.diveSiteNotes->setPalette(p);
+}