Bug 108617 - datawizard only partially obeys path shortcuts like '~'
Summary: datawizard only partially obeys path shortcuts like '~'
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 01:16 UTC by Matthew Truch
Modified: 2005-07-06 02:20 UTC (History)
1 user (show)

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 2005-07-06 01:16:28 UTC
Version:           1.2.0_devel (using KDE KDE 3.3.1)
Installed from:    Fedora RPMs
OS:                Linux

On the first 'page' of the datawizard where you select the datasource, although the autocompletion works when you use a ~ to indicate home directories, the next button will not highlight when you have indicated valid data.  However, if you then expand the ~ to be the full path, it works fine.  

When manually making a new vector (from the new vector dialog box), you *can* use ~ in the path to the data without having to manually convert the ~ to a full path.
Comment 1 George Staikos 2005-07-06 01:46:23 UTC
investigating
Comment 2 George Staikos 2005-07-06 02:20:22 UTC
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 {