diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-31 13:51:15 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-31 13:51:15 +0100 |
commit | 230f3eb7574d1c1ea164bf1ee4b7c6cd3d19a9f0 (patch) | |
tree | c8052ae204518a70b3aa97c2e12e815d0158f2fc /src/Applet/Applet.cpp | |
parent | 28a656bf6c16db7afa68cf2c8734050cdcaa2e83 (diff) | |
download | abrt-230f3eb7574d1c1ea164bf1ee4b7c6cd3d19a9f0.tar.gz abrt-230f3eb7574d1c1ea164bf1ee4b7c6cd3d19a9f0.tar.xz abrt-230f3eb7574d1c1ea164bf1ee4b7c6cd3d19a9f0.zip |
APPLET: don't show the icon when abrtd is not running
- happens when user disabled abrtd service and abrt-applet
started without daemon
Diffstat (limited to 'src/Applet/Applet.cpp')
-rw-r--r-- | src/Applet/Applet.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index b17a88b7..c29a164d 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -247,12 +247,11 @@ int main(int argc, char** argv) die_if_dbus_error(r != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER, &err, "Problem connecting to dbus, or applet is already running"); - /* Show disabled icon if daemon is not running */ + /* show the warning in terminal, as nm-applet does */ if (!dbus_bus_name_has_owner(system_conn, ABRTD_DBUS_NAME, &err)) { const char* msg = _("ABRT service is not running"); puts(msg); - applet->Disable(msg); } /* dbus_bus_request_name can already read some data. Thus while dbus fd hasn't |