fix: use QueuedConnection to fix crash on show declaration/definition
authorMilian Wolff <mail@milianw.de>
Fri, 24 Sep 2010 17:10:44 +0000 (19:10 +0200)
committerMilian Wolff <mail@milianw.de>
Fri, 24 Sep 2010 17:10:44 +0000 (19:10 +0200)
commitb802735c2b2b8810a8b901f93bbcd97519c0c9cd
treebff319d052cfa5e5752c530f7e4b9195316e36e8
parent099064e9d4733edddb07a7541376abc70ee8ef60
fix: use QueuedConnection to fix crash on show declaration/definition

the problem is that quite some direct connections eventually lead to a call to MainWindowPrivate::mergeView()
which in turn called KXMLGuiFactory::removeClient which deleted the QMenu. Afterwards the menu is closed but was already deleted
=> boom

BUG: 249884
plugins/classbrowser/classbrowserplugin.cpp