From b1d18eeb41d044927b89d9fffbcec2705cb236fc Mon Sep 17 00:00:00 2001 From: austinsfdsouza Date: Mon, 27 Feb 2006 10:06:22 +0000 Subject: [PATCH] Bug 141823 - CASAManager will not display KDE Wallet Secrets unless kwalletmanager is open -fixed by starting Kdeinit if not already running. --- c_adlib/ad_kw/native/kwallets_rw.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/c_adlib/ad_kw/native/kwallets_rw.cpp b/c_adlib/ad_kw/native/kwallets_rw.cpp index 56ce3a55..c1b5d269 100644 --- a/c_adlib/ad_kw/native/kwallets_rw.cpp +++ b/c_adlib/ad_kw/native/kwallets_rw.cpp @@ -42,10 +42,30 @@ using namespace KWallet; DCOPDemoWidget::DCOPDemoWidget() { - if ( !kapp->dcopClient()->isRegistered() ) { + + int ret = 0; + kapp->dcopClient()->isRegistered() ; + if (!ret) + { + if(kapp->dcopClient()->registerAs( "casaconsole" ).isEmpty()) + { + kapp->startKdeinit(); + kapp->dcopClient()->isRegistered() ; + if (!ret) + { + if (kapp->dcopClient()->registerAs( "casaconsole" ).isEmpty()) + { + printf("Cannot setup DCOP communication. Start kdeinit manually\n"); + return; + } + } + } + } + +/* if ( !kapp->dcopClient()->isRegistered() ) { kapp->dcopClient()->registerAs( "casaconsole" ); } - +*/ } DCOPDemoWidget::~DCOPDemoWidget()