From a70be712fd5b33071c4733c47f810948d86dd4d8 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 29 Jul 2009 21:56:37 +0000 Subject: Allow the revision control plugins to indicate information-, error- and operation-completed messages. svn path=/trunk/KDE/kdebase/apps/; revision=1004346 --- src/dolphinstatusbar.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinstatusbar.cpp') 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; } -- cgit v1.3