diff data/fileio/FileSource.cpp @ 616:3a61a4df6d53

* RDF importer: Features that are on different timeline URIs should go into separate models (_not_ just on separate signal URIs as there may not be any meaningful signal URIs) * FileSource: if a file is not found, try again assuming its name is encoded (not just in tolerant mode)
author Chris Cannam
date Thu, 15 Oct 2009 10:50:43 +0000
parents 87b81f959706
children a4faa1840384
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp	Wed Oct 07 16:45:45 2009 +0000
+++ b/data/fileio/FileSource.cpp	Thu Oct 15 10:50:43 2009 +0000
@@ -99,9 +99,9 @@
     if (!isRemote() &&
         !isAvailable()) {
 #ifdef DEBUG_FILE_SOURCE
-        std::cerr << "FileSource::FileSource: Failed to open local file with URL \"" << m_url.toString().toStdString() << "; trying again with tolerant encoding" << std::endl;
+        std::cerr << "FileSource::FileSource: Failed to open local file with URL \"" << m_url.toString().toStdString() << "; trying again assuming filename was encoded" << std::endl;
 #endif
-        m_url = QUrl(fileOrUrl, QUrl::TolerantMode);
+        m_url = QUrl::fromEncoded(fileOrUrl.toAscii());
         init();
     }