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.
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.
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