[Kst] branches/work/kst/1.1/kst/kst

George Staikos staikos at kde.org
Wed Jul 6 02:24:34 CEST 2005


SVN commit 432051 by staikos:

backport fix for 108617: support envvars and other shortcuts in the data wizard


 M  +3 -2      datawizard.ui.h  


--- branches/work/kst/1.1/kst/kst/datawizard.ui.h #432050:432051
@@ -103,14 +103,15 @@
 }
 
 
-void DataWizard::sourceChanged(const QString& txt)
+void DataWizard::sourceChanged(const QString& text)
 {
     delete _configWidget;
     _configWidget = 0L;
     _configureSource->setEnabled(false);
     _file = QString::null;
-    if (!txt.isEmpty() && txt != "stdin" && txt != "-") {
+    if (!text.isEmpty() && text != "stdin" && text != "-") {
 	KURL url;
+	QString txt = _url->completionObject()->replacedPath(text);
 	if (QFile::exists(txt) && QFileInfo(txt).isRelative()) {
 	    url.setPath(txt);
 	} else {


More information about the Kst mailing list