From f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 21 Jul 2010 16:22:56 +0000 Subject: 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 --- kontact/plugins/korganizer/korganizerplugin.cpp | 2 +- korganizer/korganizerifaceimpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kontact/plugins/korganizer/korganizerplugin.cpp b/kontact/plugins/korganizer/korganizerplugin.cpp index f219661d2..f4a3dfe1b 100644 --- a/kontact/plugins/korganizer/korganizerplugin.cpp +++ b/kontact/plugins/korganizer/korganizerplugin.cpp @@ -215,7 +215,7 @@ void KOrganizerPlugin::processDropEvent( QDropEvent *event ) bool KOrganizerPlugin::queryClose() const { KOrganizerIface_stub stub( kapp->dcopClient(), "korganizer", "KOrganizerIface" ); bool canClose=stub.canQueryClose(); - return canClose; + return (!canClose); } void KOrganizerPlugin::loadProfile( const QString& directory ) diff --git a/korganizer/korganizerifaceimpl.cpp b/korganizer/korganizerifaceimpl.cpp index 5605d7a86..a88a41cd5 100644 --- a/korganizer/korganizerifaceimpl.cpp +++ b/korganizer/korganizerifaceimpl.cpp @@ -92,7 +92,7 @@ bool KOrganizerIfaceImpl::addIncidence( const QString &ical ) bool KOrganizerIfaceImpl::canQueryClose() { - return mActionManager->queryClose(); + return (!(mActionManager->queryClose())); } void KOrganizerIfaceImpl::loadProfile( const QString& path ) -- cgit v1.2.1