Mercurial > hg > svcore
changeset 519:21f86744d38e sv-v1.4
...
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2008 12:37:16 +0000 (2008-12-11) |
parents | 3cea770c6632 |
children | e340b2fb9471 |
files | transform/FileFeatureWriter.cpp |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
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;