summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Savochenko <roman@home.home>2023-11-21 18:56:47 +0200
committerRoman Savochenko <roman@home.home>2023-11-21 18:56:47 +0200
commit752cbffab99f1c436e75d0b80d273a2ec3880681 (patch)
tree720192891e0ab124a57ae7725f404a08ba8a7707
parent6deb3b43d145638070e9b7ad77eb9a10f4d3a72e (diff)
downloadtdeutils-752cbffab99f1c436e75d0b80d273a2ec3880681.tar.gz
tdeutils-752cbffab99f1c436e75d0b80d273a2ec3880681.zip
KGPG: Prevents the crashes at the full startfeat/kgpg-crash
Signed-off-by: Roman Savochenko <roman@home.home>
-rw-r--r--kgpg/kgpg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kgpg/kgpg.cpp b/kgpg/kgpg.cpp
index 0d7acd2..0680965 100644
--- a/kgpg/kgpg.cpp
+++ b/kgpg/kgpg.cpp
@@ -909,10 +909,9 @@ kgpgapplet::~kgpgapplet()
}
KgpgAppletApp::KgpgAppletApp()
- : KUniqueApplication()//, kgpg_applet( 0 )
+ : KUniqueApplication(), running(false), kgpg_applet(NULL)
{
- running=false;
}
@@ -951,6 +950,7 @@ int KgpgAppletApp::newInstance()
args = TDECmdLineArgs::parsedArgs();
if (running) {
kdDebug(2100)<<"Already running"<<endl;
+ if(!kgpg_applet) return 0;
kgpg_applet->show();
} else {
kdDebug(2100) << "Starting KGpg"<<endl;