summaryrefslogtreecommitdiffstats
path: root/kicker/taskbar/taskcontainer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-04-23 12:04:06 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-04-23 12:04:06 -0500
commit9e04189c586c7fc98097b0a42222d99621131c58 (patch)
tree0e511e97c0ac6cb4b1e9b3ff6c169c7b46953a16 /kicker/taskbar/taskcontainer.cpp
parentda9d48c4d599ede076ad584832b8734a875f7867 (diff)
downloadtdebase-9e04189c586c7fc98097b0a42222d99621131c58.tar.gz
tdebase-9e04189c586c7fc98097b0a42222d99621131c58.zip
Fix sporadic Kicker crash in popup menu handler
This resolves Bug 1425
Diffstat (limited to 'kicker/taskbar/taskcontainer.cpp')
-rw-r--r--kicker/taskbar/taskcontainer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicker/taskbar/taskcontainer.cpp b/kicker/taskbar/taskcontainer.cpp
index d29321382..fa3b560a8 100644
--- a/kicker/taskbar/taskcontainer.cpp
+++ b/kicker/taskbar/taskcontainer.cpp
@@ -1258,7 +1258,9 @@ void TaskContainer::popupMenu(int action)
m_menu->installEventFilter( this );
m_menu->exec( pos );
- delete m_menu;
+ if (m_menu) {
+ delete m_menu;
+ }
m_menu = 0;
}