diff options
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 5 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 7 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.h | 1 |
3 files changed, 1 insertions, 12 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 330ea7d05..f0133a0a0 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -159,10 +159,7 @@ MainWindow::MainWindow() : QMainWindow(), LocationInformationWidget * diveSiteEdit = new LocationInformationWidget(); connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite, this, &MainWindow::setDefaultState); - - connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite, - mainTab, &MainTab::refreshDiveInfo); - + connect(diveSiteEdit, SIGNAL(endEditDiveSite()), this, SLOT(refreshDisplay())); connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite, mainTab, &MainTab::refreshDisplayedDiveSite); diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index c1e2d15af..adb73526c 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -382,13 +382,6 @@ void MainTab::showLocation() ui.location->clear(); } -// Seems wrong, since we can also call updateDiveInfo(), but since the updateDiveInfo -// has a parameter on it's definition it didn't worked on the signal slot connection. -void MainTab::refreshDiveInfo() -{ - MainWindow::instance()->refreshDisplay(); -} - void MainTab::updateDepthDuration() { ui.depth->setVisible(true); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index d27b25d94..03eb5f320 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -64,7 +64,6 @@ public slots: void addCylinder_clicked(); void addWeight_clicked(); - void refreshDiveInfo(); void updateDiveInfo(bool clear = false); void updateDepthDuration(); void acceptChanges(); |