KGPG: Prevents the crashes at the full start

Signed-off-by: Roman Savochenko <roman@home.home>
feat/kgpg-crash
Roman Savochenko 12 months ago
parent 6deb3b43d1
commit 752cbffab9

@ -909,10 +909,9 @@ kgpgapplet::~kgpgapplet()
} }
KgpgAppletApp::KgpgAppletApp() KgpgAppletApp::KgpgAppletApp()
: KUniqueApplication()//, kgpg_applet( 0 ) : KUniqueApplication(), running(false), kgpg_applet(NULL)
{ {
running=false;
} }
@ -951,6 +950,7 @@ int KgpgAppletApp::newInstance()
args = TDECmdLineArgs::parsedArgs(); args = TDECmdLineArgs::parsedArgs();
if (running) { if (running) {
kdDebug(2100)<<"Already running"<<endl; kdDebug(2100)<<"Already running"<<endl;
if(!kgpg_applet) return 0;
kgpg_applet->show(); kgpg_applet->show();
} else { } else {
kdDebug(2100) << "Starting KGpg"<<endl; kdDebug(2100) << "Starting KGpg"<<endl;

Loading…
Cancel
Save