From d50e767fb561479c51b18f9938ec2a603623a0dc Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 25 Jul 2015 17:22:57 -0300 Subject: [PATCH] We do not change the displayed_dive_site - don't reset it It seemed correct when we changed the dive_site that we could be editing, but we don't do that anymore. (I actually think this should be self-contained, no global that a lot of widgets can change) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 9d69ba5d2..3bb37ca21 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -121,12 +121,6 @@ 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);