┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-08-14 15:30:29 +0200
committerPeter Penz <[email protected]>2011-08-14 15:31:58 +0200
commite57bef02614a581dbe520b7946b9a0cb61165f33 (patch)
tree151e2c0b3dc61e01ca37ecb2a5b382d63703a823 /src/dolphinmainwindow.cpp
parentc173de4c9ba5cd56a2fa0c2d37b63da5639f817a (diff)
Remove "FirstRun" property
The property got obsoleted by the "Version" property.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index f495cef54..76d61978f 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -99,7 +99,7 @@
namespace {
// Used for GeneralSettings::version() to determine whether
// an updated version of Dolphin is running.
- const int CurrentDolphinVersion = 171;
+ const int CurrentDolphinVersion = 200;
};
/*
@@ -172,7 +172,7 @@ DolphinMainWindow::DolphinMainWindow() :
const DolphinSettings& settings = DolphinSettings::instance();
GeneralSettings* generalSettings = settings.generalSettings();
- const bool firstRun = generalSettings->firstRun();
+ const bool firstRun = (generalSettings->version() < 200);
if (firstRun) {
generalSettings->setViewPropsTimestamp(QDateTime::currentDateTime());
}
@@ -652,9 +652,7 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
}
}
- generalSettings->setFirstRun(false);
generalSettings->setVersion(CurrentDolphinVersion);
-
settings.save();
if (m_searchDockIsTemporaryVisible) {
@@ -1845,24 +1843,16 @@ void DolphinMainWindow::setupDockWidgets()
searchPanel, SLOT(setUrl(KUrl)));
#endif
- const GeneralSettings* generalSettings = DolphinSettings::instance().generalSettings();
- const bool firstRun = generalSettings->firstRun();
- if (firstRun) {
+ if (DolphinSettings::instance().generalSettings()->version() < 200) {
infoDock->hide();
foldersDock->hide();
#ifndef Q_OS_WIN
terminalDock->hide();
#endif
- }
-
#ifdef HAVE_NEPOMUK
- // The search dock has been introduced with Dolphin 1.7.0. Hide it per
- // default when updating from an older Dolphin version or when Dolphin is
- // started the first time.
- if (firstRun || generalSettings->version() < 170) {
searchDock->hide();
- }
#endif
+ }
// Setup "Places"
DolphinDockWidget* placesDock = new DolphinDockWidget(i18nc("@title:window", "Places"));