[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Dec 7 19:39:28 CET 2005


SVN commit 486401 by arwalker:

BUG:115988 Do not assume that a datasource is going to provide and INDEX vector

 M  +4 -2      datawizard.ui.h  


--- trunk/extragear/graphics/kst/kst/datawizard.ui.h #486400:486401
@@ -217,9 +217,11 @@
 
 	KST::vectorDefaults.sync();
 	QString defaultX = KST::vectorDefaults.wizardXVector();
-	if (defaultX == "INDEX" || fl.contains(defaultX)) {
+	if (fl.contains(defaultX)) {
 	    _xVector->setCurrentText(defaultX);
-	}
+	} else {
+	    _xVector->setCurrentItem(0);
+	}                
 	_file = file;
     } else {
 	_fileType->setText(QString::null);


More information about the Kst mailing list