diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-16 18:51:43 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-17 13:42:09 -0700 |
commit | 2b99ae5781bc8c7ae596e6302f167a23f67ee2a0 (patch) | |
tree | d6fef9d1f7113f29d2e0f0b5d029a4101d94a238 | |
parent | 05552c7339d564c38d8d8aa1c4898a6736d070bf (diff) | |
download | subsurface-2b99ae5781bc8c7ae596e6302f167a23f67ee2a0.tar.gz |
Fix signal connections
I don't know what happened to me, I connected to some signals that didn't
exist at all.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/maintab.cpp | 10 | ||||
-rw-r--r-- | qt-ui/maintab.h | 2 | ||||
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index ebfa0537e..77f0fc476 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -199,6 +199,16 @@ MainTab::~MainTab() } } +void MainTab::enable() +{ + setEnabled(true); +} + +void MainTab::disable() +{ + setDisabled(true); +} + void MainTab::prepareDiveSiteEdit() { emit requestDiveSiteEdit(displayed_dive.dive_site_uuid); } diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 5cff5714f..e81c53ba7 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -94,6 +94,8 @@ slots: void removeSelectedPhotos(); void prepareDiveSiteEdit(); void showLocation(); + void enable(); + void disable(); private: Ui::MainTab ui; diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 97c68af8e..02eb78ede 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -202,8 +202,8 @@ MainWindow::MainWindow() : QMainWindow(), ui.menu_Edit->addActions(undoRedoActions); ReverseGeoLoockupThread *geoLoockup = ReverseGeoLoockupThread::instance(); - connect(geoLoockup, SIGNAL(start()),information(), SLOT(setDisabled())); - connect(geoLoockup, SIGNAL(finished()), information(), SLOT(setEnabled())); + connect(geoLoockup, SIGNAL(started()),information(), SLOT(disable())); + connect(geoLoockup, SIGNAL(finished()), information(), SLOT(enable())); } MainWindow::~MainWindow() |