Correctly test dbus. Fixes #6844

This commit is contained in:
Denis Fomin 2011-03-25 12:23:32 +03:00
parent 40db9c36b7
commit e76550dd19
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ except ImportError:
HAS_GTK_SPELL = False
from common import dbus_support
if dbus_support:
if dbus_support.supported:
import dbus
import remote_control
@ -1427,7 +1427,7 @@ class ChatControl(ChatControlBase):
'chat_control', contact, acct, resource)
self._dbus_message_sent_match = None
if dbus_support:
if dbus_support.supported:
bus = dbus_support.session_bus.bus()
try:
obj = bus.get_object(remote_control.SERVICE, remote_control.OBJ_PATH)