SVN commit 680152 by mlaurent: Port dbus M +7 -7 kmailconnectionadaptor.cpp --- trunk/KDE/kdepim/kresources/kolab/shared/kmailconnectionadaptor.cpp #680151:680152 @@ -110,6 +110,10 @@ connect( QDBusConnection::sessionBus().interface(), SIGNAL(serviceOwnerChanged(QString,QString,QString)), SLOT(dbusServiceOwnerChanged(QString,QString,QString)) ); #endif + QObject::connect(QDBusConnection::sessionBus().interface(), + SIGNAL(serviceOwnerChanged(QString,QString,QString)), + this, SLOT(dbusServiceOwnerChanged(QString,QString,QString))); + // TODO connect to the dbus signals from kmail here QDBusConnection::sessionBus().registerObject( uniq,this,QDBusConnection::ExportScriptableSlots|QDBusConnection::ExportScriptableSignals ); } @@ -136,8 +140,6 @@ // using e.g. KMessageBox return false; } -//TODO verify interface - qDebug()<<" dbusService :"<app() == appId ) { + if (mKmailGroupwareInterface && mKmailGroupwareInterface->service()==service) + { // Delete the stub so that the next time we need to talk to kmail, // we'll know that we need to start a new one. delete mKmailGroupwareInterface; - mKmailGroupwareInterface = 0; + mKmailGroupwareInterface = 0; } -#endif } #include "kmailconnectionadaptor.moc"