summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-07-25 12:35:14 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-25 13:52:33 -0700
commit68053a11508d67604360481eb4ab5bbba8c64860 (patch)
tree8efa486a0482776e0d3e533076e0fd02a79f21cc /qt-ui/mainwindow.cpp
parent1aaa37e5116148652a9ce7193d14320e30ee5bb1 (diff)
downloadsubsurface-68053a11508d67604360481eb4ab5bbba8c64860.tar.gz
Close the dive site edit when accepting/rejecting it
Return to the default mainwindow state when the user accepts or rejects the dive site edit. 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 2b3b30a6a..4463cb195 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -111,6 +111,9 @@ MainWindow::MainWindow() : QMainWindow(),
profileContainer->setLayout(profLayout);
LocationInformationWidget * diveSiteEdit = new LocationInformationWidget();
+ connect(diveSiteEdit, &LocationInformationWidget::informationManagementEnded,
+ this, &MainWindow::setDefaultState);
+
QWidget *diveSitePictures = new QWidget(); // Placeholder
registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps );