diff options
| author | Peter Penz <[email protected]> | 2008-02-15 23:13:47 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-15 23:13:47 +0000 |
| commit | f70b85b4ca2b96ebf578d4db790a8ac3f69f766e (patch) | |
| tree | 9667d57e8158141cb012de02fa95218a95223b0d /src/dolphinmainwindow.cpp | |
| parent | d38de66f4b97a6d9cd30f3fc69e66b343ca312dc (diff) | |
Initially I thought it's better not having code as default value inside dolphin_generalsettings.kcfg. But the check for an empty home URL in DolphinMainWindow::init() must also be done when invoking GeneralSettings::setDefaults() in StartupSettingsPage, otherwise the home URL would get empty... Using QDir::homePath() as default-value inside the *.kcfg file prevents such issues.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=775494
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index d4276d492..dd8b02efb 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -614,9 +614,6 @@ void DolphinMainWindow::init() const bool firstRun = generalSettings->firstRun(); if (firstRun) { generalSettings->setViewPropsTimestamp(QDateTime::currentDateTime()); - Q_ASSERT(generalSettings->homeUrl().isEmpty()); - const KUrl homeUrl(QDir::homePath()); - generalSettings->setHomeUrl(homeUrl.prettyUrl()); } setAcceptDrops(true); |
