From 9fefdaeed15039877f525d2c6fae3e02318c4234 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Sun, 15 Nov 2009 19:39:28 +0100 Subject: don't show icon on abrtd start/stop rhbz#537630 - this feature would show the icon even after abrt update, which would show the icon and thus might confuse user with the warning sign --- src/Applet/Applet.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Applet/Applet.cpp') diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 2eed556..ab8640a 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -134,10 +134,9 @@ static void NameOwnerChanged(DBusMessage* signal) return; } - if (new_owner[0]) - applet->Enable(_("ABRT service has been started")); - else - applet->Disable(_("ABRT service is not running")); +// hide icon if it's visible - as NM and don't show it, if it's not + if(!new_owner[0]) + applet->HideIcon(); } static DBusHandlerResult handle_message(DBusConnection* conn, DBusMessage* msg, void* user_data) -- cgit