┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-01-06 19:13:07 +0000
committerPeter Penz <[email protected]>2010-01-06 19:13:07 +0000
commit743b502a0e0821d6ab4dbb02d9bab029b957f4a2 (patch)
tree34ff7a3faca55c1f520b094228b5c074ee0b9717 /src/dolphinviewcontainer.cpp
parentb93b305d2ea75a1dd5c5953fb16374038d64f498 (diff)
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
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp8
1 files changed, 7 insertions, 1 deletions
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) {