mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Better name for the disable/enable geolocation edit
'enable' and 'disable' is too generic, and we are only blocking the geolocation edit. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b59084dc1f
commit
c2f77353ee
3 changed files with 6 additions and 6 deletions
|
@ -200,12 +200,12 @@ MainTab::~MainTab()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainTab::enable()
|
void MainTab::enableGeoLoockupEdition()
|
||||||
{
|
{
|
||||||
setEnabled(true);
|
setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainTab::disable()
|
void MainTab::disableGeoLoockupEdition()
|
||||||
{
|
{
|
||||||
setDisabled(true);
|
setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,8 +94,8 @@ slots:
|
||||||
void removeSelectedPhotos();
|
void removeSelectedPhotos();
|
||||||
void prepareDiveSiteEdit();
|
void prepareDiveSiteEdit();
|
||||||
void showLocation();
|
void showLocation();
|
||||||
void enable();
|
void enableGeoLoockupEdition();
|
||||||
void disable();
|
void disableGeoLoockupEdition();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainTab ui;
|
Ui::MainTab ui;
|
||||||
|
|
|
@ -203,8 +203,8 @@ MainWindow::MainWindow() : QMainWindow(),
|
||||||
ui.menu_Edit->addActions(undoRedoActions);
|
ui.menu_Edit->addActions(undoRedoActions);
|
||||||
|
|
||||||
ReverseGeoLoockupThread *geoLoockup = ReverseGeoLoockupThread::instance();
|
ReverseGeoLoockupThread *geoLoockup = ReverseGeoLoockupThread::instance();
|
||||||
connect(geoLoockup, SIGNAL(started()),information(), SLOT(disable()));
|
connect(geoLoockup, SIGNAL(started()),information(), SLOT(disableGeoLoockupEdition()));
|
||||||
connect(geoLoockup, SIGNAL(finished()), information(), SLOT(enable()));
|
connect(geoLoockup, SIGNAL(finished()), information(), SLOT(enableGeoLoockupEdition()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
|
Loading…
Reference in a new issue