Bug 165676

Summary: Empty tabs not properly restored from .kst file
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.7.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description D. V. Wiebe 2008-07-04 00:52:20 UTC
Version:           1.7.0 (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.2.3 
OS:                Linux

Non-trailing empty tabs are not restored when loading a .kst file.

Steps to reproduce:

1. Start kst
2. Create, say, six tabs [W1 .. W6]
3. Add a plot to, say, tab W3 and W5 (use either Plots -> New Plot or Ctrl-2)
4. Save the session to a .kst file.
5. Open the .kst file just created.

Results:

The session restored from the .kst file consists of tabs W3 (with a plot), W5 (with a plot) and W6 (empty)

Expected Results:

The session should be restored will all six tabs which saved to the .kst file, regardless of whether they're empty or not.
Comment 1 Andrew Walker 2008-07-04 01:59:20 UTC
This problem was introduced in revision 317463. The comment reads:

"after a very lengthy battle with KMDI, this now closes the active view when
an open is done if the active view is empty."

When Kst is started a new empty tab is automatically created, and this code change was attempting to ensure that this empty tab was removed after doing an open.

However, the change also has the effect of removing most empty tabs from the file being opened.
Comment 2 Andrew Walker 2008-07-04 02:13:50 UTC
SVN commit 827867 by arwalker:

BUG:165676 no longer deliberately remove empty tabs when opening a kst file

 M  +1 -16     kstdoc.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=827867