[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Mar 5 08:08:09 CET 2004
CVS commit by staikos:
misc. wizard bug fixes
M +7 -2 datawizard.ui.h 1.12
--- kdeextragear-2/kst/kst/datawizard.ui.h #1.11:1.12
@@ -78,6 +78,7 @@ void DataWizard::sourceChanged( const QS
KstDataSourcePtr ds = *KST::dataSourceList.findFileName(txt);
- if (!ds && txt != "stdin") { // FIXME: deal with stdin properly
+ if (!ds && txt != "stdin" && txt != "-") { // FIXME: deal with stdin properly
ds = KstDataSource::loadSource(txt);
+ KST::dataSourceList.append(ds);
}
@@ -136,9 +137,13 @@ void DataWizard::showPage( QWidget *page
QString save = _existingPlotName->currentText();
_existingPlotName->clear();
- _existingPlotName->insertStringList(KST::plotList.tagNames());
+ QStringList pl = KST::plotList.tagNames();
+ _existingPlotName->insertStringList(pl);
+ _existingPlot->setEnabled(!pl.isEmpty());
if (KST::plotList.FindKstPlot(save)) {
_existingPlotName->setCurrentText(save);
}
+ _cycleExisting->setEnabled(!pl.isEmpty());
+
if (!_filterList->currentText().isEmpty() && (!_filter || _filter->name() != _filterList->currentText())) {
_filter = KST::filterSetList.find(_filterList->currentText());
More information about the Kst
mailing list