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

Dennis Nienhüser earthwings at gentoo.org
Sat Jan 9 00:11:14 CET 2010


SVN commit 1071879 by nienhueser:

Correctly restore infobox locking state setting


 M  +4 -2      QtMainWindow.cpp  


--- trunk/KDE/kdeedu/marble/src/QtMainWindow.cpp #1071878:1071879
@@ -161,7 +161,7 @@
      m_lockFloatItemsAct = new QAction( tr("Lock Position"),this);
      m_lockFloatItemsAct->setCheckable( true );
      m_lockFloatItemsAct->setStatusTip(tr("Lock Position of Floating Items"));
-     connect(m_lockFloatItemsAct, SIGNAL(toggled( bool )), this, SLOT( lockPosition( bool )));
+     connect(m_lockFloatItemsAct, SIGNAL(triggered( bool )), this, SLOT( lockPosition( bool )));
 
      m_showCloudsAct = new QAction( tr("&Clouds"), this);
      m_showCloudsAct->setCheckable( true );
@@ -677,7 +677,9 @@
 	    m_controlView->marbleWidget()->goHome();
 	 }
          
-         m_lockFloatItemsAct->setChecked( settings.value( "lockFloatItemPositions", false ).toBool() );
+         bool isLocked = settings.value( "lockFloatItemPositions", false ).toBool();
+         m_lockFloatItemsAct->setChecked( isLocked );
+         lockPosition(isLocked);
      settings.endGroup();
      
      settings.beginGroup( "Sun" );


More information about the Marble-commits mailing list