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:
Tomaz Canabrava 2015-05-17 18:35:30 -03:00 committed by Dirk Hohndel
parent b59084dc1f
commit c2f77353ee
3 changed files with 6 additions and 6 deletions

View file

@ -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);
} }

View file

@ -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;

View file

@ -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()