summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/maintab.cpp10
-rw-r--r--qt-ui/maintab.h2
-rw-r--r--qt-ui/mainwindow.cpp4
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()