Commit 51c0eb2c authored by Laurent Montel's avatar Laurent Montel 😁

Try to fix crash reported by Luca Beltrame on irc.

I can't reproduce this crash but perhaps it"s a bug with new qt5.9
I didn't change this code from long time
parent 1524e285
......@@ -4144,7 +4144,10 @@ void KMMainWidget::clearFilterActions()
actionCollection()->removeAction(a);
}
mApplyFilterActionsMenu->menu()->clear();
QMenu *actMenu = mApplyFilterActionsMenu->menu();
if (actMenu) {
actMenu->clear();
}
mFilterTBarActions.clear();
mFilterMenuActions.clear();
......
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