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:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user