Bug 126732 - Files not opened in correct windows when resumming a stored session
Summary: Files not opened in correct windows when resumming a stored session
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: sessions (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-04 14:32 UTC by Chris Jones
Modified: 2010-05-08 02:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jones 2006-05-04 14:32:56 UTC
Version:           2.5.2 (using KDE KDE 3.5.2)
Installed from:    Fedora RPMs
Compiler:          gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3) 
OS:                Linux

When I restore a kate session that has multiple files open, with multiple windows, then kate does not correctly display the file in each window that was "active" when the session was saved.

How to reproduce : start a kate session with two files (say A.txt and B.txt), each open in a separate window. Save that session and restart the session. 
Observed behaviour : One of the files, A.txt is displayed in BOTH windows.
Expected beahviour : One window should display A.txt, the other B.txt, as was the case when the session was saved.
Comment 1 Stefan Geuns 2006-11-02 19:10:14 UTC
This bug happens for me too if I open files in split-window mode.
If I split the window vertically and both of them horizontally, each has a unique file, after a session restart 2 of them contained 1 file and 2 other views contained a second file. But the 3rd and 4th file are not reopened.
Comment 2 Dominik Haumann 2010-05-08 02:15:36 UTC
fix session restore shows wrong view (bug #126732)

The KateViewSpace already sets the active view in ::restoreConfig(),
and KateApp::newMainWindows was overwriting that.

Commit: http://gitorious.org/kate/kate/commit/407caca692a2503984ec63fabd90d09285b35c23