From: Peter Penz Date: Wed, 6 Jan 2010 19:13:07 +0000 (+0000) Subject: If an operation has been completed (e. g. a rename operation), the default status... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/743b502a0e0821d6ab4dbb02d9bab029b957f4a2 If an operation has been completed (e. g. a rename operation), the default status bar text must be updated too. Otherwise the statusbar would show a cached version after the "operation completed" message is not shown anymore. BUG: 212797 svn path=/trunk/KDE/kdebase/apps/; revision=1070800 --- diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index a821d5d29..8ff1179ab 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -158,6 +158,7 @@ DolphinViewContainer::DolphinViewContainer(DolphinMainWindow* mainWindow, connect(m_urlNavigator, SIGNAL(historyChanged()), this, SLOT(slotHistoryChanged())); + // initialize status bar m_statusBar = new DolphinStatusBar(this, m_view); m_statusBarTimer = new QTimer(this); m_statusBarTimer->setSingleShot(true); @@ -165,6 +166,11 @@ DolphinViewContainer::DolphinViewContainer(DolphinMainWindow* mainWindow, connect(m_statusBarTimer, SIGNAL(timeout()), this, SLOT(updateStatusBar())); + KIO::FileUndoManager* undoManager = KIO::FileUndoManager::self(); + connect(undoManager, SIGNAL(jobRecordingFinished(CommandType)), + this, SLOT(delayedStatusBarUpdate())); + + // initialize filter bar m_filterBar = new FilterBar(this); m_filterBar->setVisible(settings->filterBar()); connect(m_filterBar, SIGNAL(filterChanged(const QString&)), @@ -274,7 +280,7 @@ void DolphinViewContainer::updateStatusBar() || (m_statusBar->type() == DolphinStatusBar::Information)) && (m_statusBar->progress() == 100); - const QString text(m_view->statusBarText()); + const QString text = m_view->statusBarText(); m_statusBar->setDefaultText(text); if (updateStatusBarMsg) {