mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
05552c7339
commit
2b99ae5781
3 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -94,6 +94,8 @@ slots:
|
|||
void removeSelectedPhotos();
|
||||
void prepareDiveSiteEdit();
|
||||
void showLocation();
|
||||
void enable();
|
||||
void disable();
|
||||
|
||||
private:
|
||||
Ui::MainTab ui;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue