Modified mainwindow auto centering toggling.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 11 May 2010 11:32:13 +0000 (14:32 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Tue, 11 May 2010 11:32:13 +0000 (14:32 +0300)
src/ui/mainwindow.cpp

index 15d1229..0982eb2 100644 (file)
@@ -190,12 +190,15 @@ void MainWindow::gpsActionToggled(bool checked)
         m_gpsToggleAct->setText(tr("GPS enabled"));
         showMaemoInformationBox(tr("GPS enabled"));
         m_autoCenteringAct->setEnabled(true);
+        autoCenteringToggled(true);
     }
     else {
         emit enableGPS(false);
         m_gpsToggleAct->setText(tr("GPS disabled"));
         showMaemoInformationBox(tr("GPS disabled"));
         m_autoCenteringAct->setEnabled(false);
+        autoCenteringToggled(false);
+
     }
 }