┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinstatusbar.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-07-29 21:56:37 +0000
committerPeter Penz <[email protected]>2009-07-29 21:56:37 +0000
commita70be712fd5b33071c4733c47f810948d86dd4d8 (patch)
tree5683e3ac6880810013a001257ce1079beeb31436 /src/dolphinstatusbar.cpp
parenta48c813fd9b4c416f23c48914889946074b96084 (diff)
Allow the revision control plugins to indicate information-, error- and operation-completed messages.
svn path=/trunk/KDE/kdebase/apps/; revision=1004346
Diffstat (limited to 'src/dolphinstatusbar.cpp')
-rw-r--r--src/dolphinstatusbar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp
index 7a9b5dc8a..591a45c03 100644
--- a/src/dolphinstatusbar.cpp
+++ b/src/dolphinstatusbar.cpp
@@ -124,7 +124,14 @@ DolphinStatusBar::~DolphinStatusBar()
void DolphinStatusBar::setMessage(const QString& msg,
Type type)
{
+ if (msg.isEmpty()) {
+ // show the default text as fallback
+ clear();
+ return;
+ }
+
if ((msg == m_messageLabel->text()) && (type == m_messageLabel->type())) {
+ // the message is already shown
return;
}