mirror of
https://github.com/KDE/konsole.git
synced 2026-06-21 20:29:16 -04:00
Temporary fix for crash that happens in Konsole Part when user has opened
the popup menu and then closes the last session. The down side is now no popup menu is displayed. CCBUG: 246652 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1196676
This commit is contained in:
@@ -1053,6 +1053,16 @@ void SessionController::sessionTitleChanged()
|
||||
|
||||
void SessionController::showDisplayContextMenu(const QPoint& position)
|
||||
{
|
||||
/* After showing this menu in a Konsole Part, it will crash upon
|
||||
* exiting the last session.
|
||||
BUG 246652
|
||||
*/
|
||||
if (!factory())
|
||||
{
|
||||
kWarning()<< "Not showing menu to avoid crash (BUG 246652)";
|
||||
return;
|
||||
}
|
||||
|
||||
// needed to make sure the popup menu is available, even if a hosting
|
||||
// application did not merge our GUI.
|
||||
if (!factory())
|
||||
|
||||
Reference in New Issue
Block a user