Bug 141823 - CASAManager will not display KDE Wallet Secrets unless

kwalletmanager is open -fixed by starting Kdeinit if not already running.
This commit is contained in:
austinsfdsouza 2006-02-27 10:06:22 +00:00
parent 9c7270e1b3
commit b1d18eeb41

View File

@ -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()