summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Sander Kleijwegt <sander@myowndomain.nl>2015-08-30 01:00:22 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-29 20:10:32 -0700
commitd22a135343361a8243beb335ea89d5a9934a9347 (patch)
tree36856beca2b34ecd1be018097882561884c27985 /qt-ui/mainwindow.cpp
parent954c30c4cfea934b77ccf2035310f157238cb299 (diff)
downloadsubsurface-d22a135343361a8243beb335ea89d5a9934a9347.tar.gz
Fix edit & show of divesites for new and existing dives.
The UI detects when it should refresh the loction after the user finished editting a divesite. Creating and editting divesites is now working even when the current dive is not saved yet. Signed-off-by: Sander Kleijwegt <sander@myowndomain.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 945204e26..1d98f2b59 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -118,6 +118,9 @@ MainWindow::MainWindow() : QMainWindow(),
connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
mainTab, &MainTab::refreshDiveInfo);
+ connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
+ mainTab, &MainTab::refreshDisplayedDiveSite);
+
QWidget *diveSitePictures = new QWidget(); // Placeholder
std::pair<QByteArray, QVariant> enabled = std::make_pair("enabled", QVariant(true));