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

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

SVN commit 1214105 by segato:

backport r1214104
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
CCBUG:262971



 M  +4 -0      kurl.cpp  


--- branches/KDE/4.6/kdelibs/kdecore/io/kurl.cpp #1214104:1214105
@@ -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