minor code cleanup

svn path=/trunk/KDE/kdebase/apps/; revision=775094
This commit is contained in:
Peter Penz 2008-02-14 21:25:36 +00:00
parent f260f7b544
commit e43bc5a6f6

View file

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