Commit c5ec8972 authored by Stephan Binner's avatar Stephan Binner
Browse files

Backport crash fix for those wanting to use this with Qt 3.1.

svn path=/branches/KDE_3_0_BRANCH/kdebase/konsole/; revision=192488
parent 72ecf706
......@@ -357,7 +357,7 @@ void Konsole::makeGUI()
// Remove the empty separator Qt inserts if the menu is empty on popup,
// not sure if this will be "fixed" in Qt, for now use this hack (malte)
if(!(isRestored)) {
if (sender()->inherits("QPopupMenu") &&
if (sender() && sender()->inherits("QPopupMenu") &&
static_cast<const QPopupMenu *>(sender())->count() == 1)
const_cast<QPopupMenu *>(static_cast<const QPopupMenu *>(sender()))->removeItemAt(0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment