Bug 85214 - data wizard doesn't remember X vector used last time
Summary: data wizard doesn't remember X vector used last time
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 01:18 UTC by Matthew Truch
Modified: 2004-07-24 07:33 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 Matthew Truch 2004-07-15 01:18:25 UTC
Version:           0.98 (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs
OS:                Linux

The data wizard remembers settings used the previous time, but does not remember the X vector used (and defaults to INDEX for dirfiles).  Instead, it should default to the last X vector used in the wizard.
Comment 1 George Staikos 2004-07-24 07:33:50 UTC
CVS commit by staikos: 

remember the previous X vector
CCMAIL: 85214-done@bugs.kde.org


  M +7 -1      datawizard.ui.h   1.62


--- kdeextragear-2/kst/kst/datawizard.ui.h  #1.61:1.62
@@ -120,4 +120,9 @@ void DataWizard::sourceChanged( const QS
                 new QCheckListItem(_vectors, *it, QCheckListItem::CheckBox);
             }
+            KST::vectorDefaults.sync();
+            QString defaultX = KST::vectorDefaults.wizardXVector();
+            if (defaultX == "INDEX" || fl.contains(defaultX)) {
+                _xVector->setCurrentText(defaultX);
+            }
         }
     } else if (!_ds) {
@@ -157,5 +162,6 @@ void DataWizard::showPage( QWidget *page
         }
     } else if (page == _pagePlot) {
-
+        KST::vectorDefaults.setWizardXVector(_xVector->currentText());
+        KST::vectorDefaults.sync();
         if (!_filterList->currentText().isEmpty() && (!_filter || _filter->name() != _filterList->currentText())) {
             _filter = KST::filterSetList.find(_filterList->currentText());