new StatusNotifierItemAdaptor(this);
//qDebug() << "service is" << m_service;
registerService();
- m_dbus.registerObject("/StatusNotifierItem", this);
}
StatusNotifierItemDBus::~StatusNotifierItemDBus()
{
//qDebug() << "registering to" << m_service;
m_dbus.registerService(m_service);
+ m_dbus.registerObject("/StatusNotifierItem", this);
}
// FIXME: see above
{
//qDebug() << "unregistering from" << m_service;
if(m_dbus.isConnected()) {
+ m_dbus.unregisterObject("/StatusNotifierItem");
m_dbus.unregisterService(m_service);
}
}