[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/io
From:       Carlo Segato <brandon.ml () gmail ! com>
Date:       2011-01-13 1:15:58
Message-ID: 20110113011558.13504AC8B3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1214104 by segato:

on windows KUrl::path() returns toLocalFile() if the path is local, that means that \
the path doesn't start with a / so we need to add it back to create a proper url \
BUG:262971


 M  +4 -0      kurl.cpp  


--- trunk/KDE/kdelibs/kdecore/io/kurl.cpp #1214103:1214104
@@ -1096,6 +1096,10 @@
   }
 
   tmp = path();
+#ifdef Q_WS_WIN
+  if (isLocalFile())
+    tmp.prepend(QLatin1Char('/')); // KUrl::path() returns toLocalFile() on windows \
so we need to add the / back to create a proper url +#endif
   result += toPrettyPercentEncoding(tmp, false);
 
   // adjust the trailing slash, if necessary


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic