summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-07-30 21:32:50 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-31 10:27:16 -0700
commit9130ff8a97ea73e92dccd68f8107f441cb0a3f7e (patch)
treedc8a2bd597a5ef066cd5fa919ac4daa3d581c286 /qt-ui/mainwindow.cpp
parent7834341562758ba22f46c5cca4f509987db611f1 (diff)
downloadsubsurface-9130ff8a97ea73e92dccd68f8107f441cb0a3f7e.tar.gz
Correctly update the dive when the user edits dive_site
We didn't correctly update the dive site as soon as the dive_site edit finished, and this time we are actually correctly updating things using signals instead of calling the mainwindow for everything. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> 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 d6ad23584..e7d53e550 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -114,6 +114,9 @@ MainWindow::MainWindow() : QMainWindow(),
connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
this, &MainWindow::setDefaultState);
+ connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite,
+ mainTab, &MainTab::refreshDiveInfo);
+
QWidget *diveSitePictures = new QWidget(); // Placeholder
registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps );