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>
This commit is contained in:
Tomaz Canabrava 2015-07-25 12:35:14 -03:00 committed by Dirk Hohndel
parent 1aaa37e511
commit 68053a1150

View file

@ -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 );