]> cloud.milkyroute.net Git - dolphin.git/commitdiff
minor code cleanup
authorPeter Penz <peter.penz19@gmail.com>
Thu, 14 Feb 2008 21:25:36 +0000 (21:25 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 14 Feb 2008 21:25:36 +0000 (21:25 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=775094

src/dolphinmainwindow.cpp

index e393b22d0700977f450a69f907e68b0201536392..d4276d49236ed8457e7d8b2d4c9c49e9fe5eef09 100644 (file)
@@ -606,9 +606,11 @@ void DolphinMainWindow::editSettings()
 
 void DolphinMainWindow::init()
 {
+    DolphinSettings& settings = DolphinSettings::instance();
+
     // Check whether Dolphin runs the first time. If yes then
     // a proper default window size is given at the end of DolphinMainWindow::init().
-    GeneralSettings* generalSettings = DolphinSettings::instance().generalSettings();
+    GeneralSettings* generalSettings = settings.generalSettings();
     const bool firstRun = generalSettings->firstRun();
     if (firstRun) {
         generalSettings->setViewPropsTimestamp(QDateTime::currentDateTime());
@@ -621,11 +623,9 @@ void DolphinMainWindow::init()
 
     m_splitter = new QSplitter(this);
 
-    DolphinSettings& settings = DolphinSettings::instance();
-
     setupActions();
 
-    const KUrl& homeUrl = settings.generalSettings()->homeUrl();
+    const KUrl& homeUrl = generalSettings->homeUrl();
     setCaption(homeUrl.fileName());
     m_actionHandler = new DolphinViewActionHandler(actionCollection(), this);
     connect(m_actionHandler, SIGNAL(actionBeingHandled()), SLOT(clearStatusBar()));