diff options
author | Sander Kleijwegt <sander@myowndomain.nl> | 2015-08-30 01:00:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-29 20:10:32 -0700 |
commit | d22a135343361a8243beb335ea89d5a9934a9347 (patch) | |
tree | 36856beca2b34ecd1be018097882561884c27985 /qt-ui/mainwindow.cpp | |
parent | 954c30c4cfea934b77ccf2035310f157238cb299 (diff) | |
download | subsurface-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.cpp | 3 |
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)); |