diff options
-rw-r--r-- | qt-ui/locationinformation.cpp | 4 | ||||
-rw-r--r-- | qt-ui/locationinformation.h | 1 | ||||
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 3bb37ca21..48d5035ab 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -85,7 +85,7 @@ void LocationInformationWidget::acceptChanges() mark_divelist_changed(true); resetState(); - emit informationManagementEnded(); + emit endEditDiveSite(); emit coordinatesChanged(); } @@ -93,7 +93,7 @@ void LocationInformationWidget::rejectChanges() { resetState(); emit stopFilterDiveSite(); - emit informationManagementEnded(); + emit endEditDiveSite(); emit coordinatesChanged(); } diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 6b7399813..3eff271c2 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -29,7 +29,6 @@ private slots: signals: void startEditDiveSite(uint32_t uuid); void endEditDiveSite(); - void informationManagementEnded(); void coordinatesChanged(); void startFilterDiveSite(uint32_t uuid); void stopFilterDiveSite(); diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index b6459d3c2..d6ad23584 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -111,7 +111,7 @@ MainWindow::MainWindow() : QMainWindow(), profileContainer->setLayout(profLayout); LocationInformationWidget * diveSiteEdit = new LocationInformationWidget(); - connect(diveSiteEdit, &LocationInformationWidget::informationManagementEnded, + connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite, this, &MainWindow::setDefaultState); QWidget *diveSitePictures = new QWidget(); // Placeholder |