Do not set the state of the application from here.

The mainwindow should manage the mainwindow.

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-06-04 00:28:18 -03:00 committed by Dirk Hohndel
parent 484fdee6fb
commit af22ebf3f1

View file

@ -64,7 +64,6 @@ void LocationInformationWidget::setCurrentDiveSiteByUuid(uint32_t uuid)
void LocationInformationWidget::updateGpsCoordinates()
{
ui.diveSiteCoordinates->setText(printGPSCoords(displayed_dive_site.latitude.udeg, displayed_dive_site.longitude.udeg));
MainWindow::instance()->setApplicationState("EditDiveSite");
}
void LocationInformationWidget::acceptChanges()