mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
Backport crash fix for those wanting to use this with Qt 3.1.
svn path=/branches/KDE_3_0_BRANCH/kdebase/konsole/; revision=192488
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user