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:
parent
9c7270e1b3
commit
b1d18eeb41
@ -42,10 +42,30 @@ using namespace KWallet;
|
|||||||
|
|
||||||
DCOPDemoWidget::DCOPDemoWidget()
|
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" );
|
kapp->dcopClient()->registerAs( "casaconsole" );
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
DCOPDemoWidget::~DCOPDemoWidget()
|
DCOPDemoWidget::~DCOPDemoWidget()
|
||||||
|
Loading…
Reference in New Issue
Block a user