diff options
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; } |
