┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-08 14:02:34 +0000
committerPeter Penz <[email protected]>2007-06-08 14:02:34 +0000
commit3a053415f9d7f8ae635e660f2a1537617feeff40 (patch)
treef3b1ec5e63f15f04558b63511daffb47036e551e /src/dolphinviewcontainer.cpp
parentdd70012499c6b7b421a9f9cdc7d3e362f6e0ed94 (diff)
enable progress information in statusbar again (has been disabled temporary because of the DolphinView/DolphinViewContainer split)
svn path=/trunk/KDE/kdebase/apps/; revision=672937
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index d792287b5..8eab3efac 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -286,6 +286,19 @@ DolphinMainWindow* DolphinViewContainer::mainWindow() const
void DolphinViewContainer::updateProgress(int percent)
{
+ if (!m_showProgress) {
+ // Only show the directory loading progress if the status bar does
+ // not contain another progress information. This means that
+ // the directory loading progress information has the lowest priority.
+ const QString progressText(m_statusBar->progressText());
+ m_showProgress = progressText.isEmpty() ||
+ (progressText == i18n("Loading folder..."));
+ if (m_showProgress) {
+ m_statusBar->setProgressText(i18n("Loading folder..."));
+ m_statusBar->setProgress(0);
+ }
+ }
+
if (m_showProgress) {
m_statusBar->setProgress(percent);
}