┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-02-14 21:25:36 +0000
committerPeter Penz <[email protected]>2008-02-14 21:25:36 +0000
commite43bc5a6f6db5bedf491710b1d68855ab52d36c7 (patch)
tree706972249c2f9e2a61f3021f7157ecf843c77408 /src/dolphinmainwindow.cpp
parentf260f7b54427d84da6663822da826ce65fe0e6bd (diff)
minor code cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=775094
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index e393b22d0..d4276d492 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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()));