[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kontact/src
From:       Sean Harmer <sh () theharmers ! co ! uk>
Date:       2009-02-22 19:16:44
Message-ID: 1235330204.738332.13036.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 930166 by harmer:

Restore the mainwindow to the correct size.
BUG: 183285


 M  +3 -3      mainwindow.cpp  


--- trunk/KDE/kdepim/kontact/src/mainwindow.cpp #930165:930166
@@ -165,6 +165,9 @@
   mSidePane->setMinimumWidth( mSidePane->sizeHint().width() );
 
   factory()->plugActionList( this, QString( "navigator_actionlist" ), mActionPlugins );
+
+  restoreWindowSize( KConfigGroup( KGlobal::config(), "MainWindow" ) );
+  setAutoSaveSettings();
 }
 
 void MainWindow::initGUI()
@@ -183,9 +186,6 @@
 
   createGUI( 0 );
 
-  resize( 700, 520 ); // initial size to prevent a scrollbar in sidepane
-  setAutoSaveSettings();
-
   KToolBar *navigatorToolBar = findToolBar( "navigatorToolBar" );
   Q_ASSERT( navigatorToolBar );
   if ( layoutDirection() == Qt::LeftToRight ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic