Bug 294674

Summary: Exiting the embedded Konsole window should not exit Kate
Product: [Applications] konsole Reporter: Dotan Cohen <kde-2011.08>
Component: kpartAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: major CC: adaptee, kde-2011.08
Priority: NOR    
Version: 2.7.4   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dotan Cohen 2012-02-23 11:02:06 UTC
When typing "exit" in an embedded Konsole pane, the console should close and Kate should not exit. In other words, this should have the same effect as closing the Konsole pane.

Marking as "Severity: Major" as this is a dataloss issue. Kate does not ask for confirmation of saving edited files when exiting in this case.
Comment 1 Dominik Haumann 2012-02-23 17:42:35 UTC
That's strange: when I type `exit` or press ctrl+d, the pane closes, and Kate does not exit. Is this a distribution issue? What KDE version are you using?
Comment 2 Dotan Cohen 2012-02-23 18:03:29 UTC
Kubuntu 11.10, KDE 4.7.4

For me the issue is completely reproducible.
Comment 3 Dotan Cohen 2012-02-23 18:04:14 UTC
$ kde4-config -v
Qt: 4.7.4
KDE Development Platform: 4.7.4 (4.7.4)
kde4-config: 1.0
Comment 4 Jekyll Wu 2012-02-23 18:13:29 UTC
I failed to reproduce the reported problem. And the problem sounds mysterious/impossible to me :)

Start Kate from terminal(konsole or any other emulator), see whether these is any interesting information printed when Kate "exits" due to the embedded konsolepart.
Comment 5 Dotan Cohen 2012-02-23 18:17:11 UTC
✈saturn:~$ kate
Object::connect: No such slot KateExternalToolsPlugin::viewDestroyed(QObject*)
kate(20363)/konsole Konsole::Session::run: Attempted to re-run an already running session. 
kate: symbol lookup error: /usr/lib/kde4/libkonsolepart.so: undefined symbol: _ZN7Konsole14SessionManager9saveStateEv
✈saturn:~$
Comment 6 Jekyll Wu 2012-02-23 18:38:29 UTC
Did you compile konsole from source code by yourself? The message implies that libkonsolepart.so and libkonsoleprivate.so does not match. Please check how you compiled and installed konsole.

In the code of Konsole, the name Konsole::SessionManager::saveState() is no longer there since KDE SC 4.8. But it should be still there in KDE SC 4.7.4.