diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-23 12:04:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-23 12:04:06 -0500 |
commit | 9e04189c586c7fc98097b0a42222d99621131c58 (patch) | |
tree | 0e511e97c0ac6cb4b1e9b3ff6c169c7b46953a16 /kicker/taskbar | |
parent | da9d48c4d599ede076ad584832b8734a875f7867 (diff) | |
download | tdebase-9e04189c586c7fc98097b0a42222d99621131c58.tar.gz tdebase-9e04189c586c7fc98097b0a42222d99621131c58.zip |
Fix sporadic Kicker crash in popup menu handler
This resolves Bug 1425
Diffstat (limited to 'kicker/taskbar')
-rw-r--r-- | kicker/taskbar/taskcontainer.cpp | 4 |
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; } |