diff options
| author | Peter Penz <[email protected]> | 2009-07-29 21:56:37 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-29 21:56:37 +0000 |
| commit | a70be712fd5b33071c4733c47f810948d86dd4d8 (patch) | |
| tree | 5683e3ac6880810013a001257ce1079beeb31436 /src/dolphinstatusbar.cpp | |
| parent | a48c813fd9b4c416f23c48914889946074b96084 (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.cpp | 7 |
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; } |
