[Marble-commits] KDE/kdeedu/marble/src/lib

Dennis Nienhüser earthwings at gentoo.org
Sun Sep 12 22:39:55 CEST 2010


SVN commit 1174563 by nienhueser:

Return to the last location visited as default on small screen devices.

 M  +3 -1      QtMarbleConfigDialog.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/QtMarbleConfigDialog.cpp #1174562:1174563
@@ -547,7 +547,9 @@
 
 int QtMarbleConfigDialog::onStartup() const
 {
-    return d->m_settings->value( "Navigation/onStartup", Marble::ShowHomeLocation ).toInt();
+    bool smallScreen = MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen;
+    int defaultValue = smallScreen ? Marble::LastLocationVisited : Marble::ShowHomeLocation;
+    return d->m_settings->value( "Navigation/onStartup", defaultValue ).toInt();
 }
 
 bool QtMarbleConfigDialog::animateTargetVoyage() const


More information about the Marble-commits mailing list