[Konsole-devel] [Bug 246652] Closing the shell via CTRL+D crashes

Gökcen Eraslan gokcen at pardus.org.tr
Tue Nov 16 13:57:35 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=246652





--- Comment #76 from Gökcen Eraslan <gokcen pardus org tr>  2010-11-16 14:57:31 ---
(In reply to comment #75)
> SVN commit 1197755 by dfaure:
> 
> Remove the crash-workaround which prevents the RMB from appearing.
> CCBUG: 246652
> #74: does this fix your problem? I couldn't reproduce it (with this local
> change)

I can't apply this since in KDE 4.5.3, I don't have workaround commit
introduced in comment 61. I have commits introduced in comment 54 and comment
72 applied to KDE 4.5.3. 


When try to debug this I see that, check of factory pointer below is skipped
since factory is not NULL:

    if (!factory()) 
    {
        if (!clientBuilder()) 
            setClientBuilder(new KXMLGUIBuilder(_view));

        KXMLGUIFactory* factory = new KXMLGUIFactory(clientBuilder(), this);
        factory->addClient(this);
    }


but popup pointer is set to NULL after this line:

    QMenu* popup =
qobject_cast<QMenu*>(factory()->container("session-popup-menu",this));

After that, in else part of popup check, 

Konsole::SessionController::showDisplayContextMenu: Unable to display popup
menu for session "Shell" , no GUI factory available to build the popup.

message is displayed with kWarning.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the konsole-devel mailing list