Mercurial > hg > svcore
diff transform/FileFeatureWriter.cpp @ 519:21f86744d38e sv-v1.4
...
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2008 12:37:16 +0000 |
parents | 3cea770c6632 |
children | 12608139f6bc |
line wrap: on
line diff
--- a/transform/FileFeatureWriter.cpp Thu Dec 11 12:32:59 2008 +0000 +++ b/transform/FileFeatureWriter.cpp Thu Dec 11 12:37:16 2008 +0000 @@ -170,9 +170,13 @@ QString dirname, basename; QString infilename = url.toLocalFile(); - if (scheme.length() == 1) infilename = scheme + ":" + infilename; // DOS drive! - if (infilename == "") infilename = url.path(); + if (infilename == "") { + infilename = url.path(); + } basename = QFileInfo(infilename).baseName(); + if (scheme.length() == 1) { + infilename = scheme + ":" + infilename; // DOS drive! + } cerr << "trackId = " << trackId.toStdString() << ", url = " << url.toString().toStdString() << ", infilename = " << infilename.toStdString() << ", basename = " << basename.toStdString() << endl;