diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-07-25 17:22:57 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-25 13:53:57 -0700 |
commit | d50e767fb561479c51b18f9938ec2a603623a0dc (patch) | |
tree | 1d789810fc75ed7e884b9a1c04f589a42408b0bd | |
parent | 71a23c5295ac96b103dfb7b6110c7dc1d30ddeef (diff) | |
download | subsurface-d50e767fb561479c51b18f9938ec2a603623a0dc.tar.gz |
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 <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/locationinformation.cpp | 6 |
1 files changed, 0 insertions, 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); |