[Kst] [Bug 108617] datawizard only partially obeys path shortcuts like '~'

George Staikos staikos at kde.org
Wed Jul 6 02:20:25 CEST 2005


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=108617         
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2005-07-06 02:20 -------
SVN commit 432050 by staikos:

Complete shell variables and other fancy things properly.
BUG: 108617


 M  +3 -2      datawizard.ui.h  


--- trunk/extragear/graphics/kst/kst/datawizard.ui.h #432049:432050
 @ -111,14 +111,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