Inverted canQueryClose DCOP signal for korganizer plugin, so that if the DCOP interface is unavailable Kontact will still be able to close

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1152640 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
parent 7973cbae43
commit f587f20a6d

@ -215,7 +215,7 @@ void KOrganizerPlugin::processDropEvent( QDropEvent *event )
bool KOrganizerPlugin::queryClose() const { bool KOrganizerPlugin::queryClose() const {
KOrganizerIface_stub stub( kapp->dcopClient(), "korganizer", "KOrganizerIface" ); KOrganizerIface_stub stub( kapp->dcopClient(), "korganizer", "KOrganizerIface" );
bool canClose=stub.canQueryClose(); bool canClose=stub.canQueryClose();
return canClose; return (!canClose);
} }
void KOrganizerPlugin::loadProfile( const QString& directory ) void KOrganizerPlugin::loadProfile( const QString& directory )

@ -92,7 +92,7 @@ bool KOrganizerIfaceImpl::addIncidence( const QString &ical )
bool KOrganizerIfaceImpl::canQueryClose() bool KOrganizerIfaceImpl::canQueryClose()
{ {
return mActionManager->queryClose(); return (!(mActionManager->queryClose()));
} }
void KOrganizerIfaceImpl::loadProfile( const QString& path ) void KOrganizerIfaceImpl::loadProfile( const QString& path )

Loading…
Cancel
Save