8d515ac
diff -up qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp.toLocalFile qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp
8d515ac
--- qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp.toLocalFile	2011-10-03 22:44:32.000000000 -0500
8d515ac
+++ qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp	2011-10-27 12:58:35.706815049 -0500
8d515ac
@@ -6158,7 +6158,8 @@ QUrl QUrl::fromLocalFile(const QString &
8d515ac
 QString QUrl::toLocalFile() const
8d515ac
 {
8d515ac
     // the call to isLocalFile() also ensures that we're parsed
8d515ac
-    if (!isLocalFile())
8d515ac
+    // Treat URLs with no scheme as local for backward compatibility
8d515ac
+    if (!isLocalFile() && !d->scheme.isEmpty())
8d515ac
         return QString();
8d515ac
 
8d515ac
     QString tmp;