Bug 165677

Summary: Order of tabs not retained in .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:59:17 UTC
Version:           1.7.0 (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.2.3 
OS:                Linux

The order of tabs in the session aren't remembered when saving the session to a .kst file.

Steps to reproduce:

1. Start kst
2. Create three tabs: W1, W2, W3
3. Add empty plots to each tab (this step is only required to get around Bug:165676 )
4. Move W3 left one position by right clicking on the tab and selecting "Move left".  The order of the tabs is now: W1, W3, W2
5. Save the session to a .kst file.
6. Open the .kst file just created.

Results:

The tabs are restored in the order of creation, ie. W1, W2, W3.

Expected Results:

The tabs should be restored in the order they had when the .kst file was written, ie. W1, W3, W2.
Comment 1 Andrew Walker 2008-07-04 20:25:16 UTC
SVN commit 828124 by arwalker:

BUG:165677 save the tabs to the kst file in the current order, rather than the order in which they were created

 M  +15 -0     kst.cpp  
 M  +1 -0      kst.h  
 M  +4 -16     kstdoc.cpp  


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