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

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/file
From:       Ralf Habacker <Ralf.Habacker () freenet ! de>
Date:       2006-12-07 7:11:33
Message-ID: 1165475493.415597.5585.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 611201 by habacker:

win32 hack: workaround for currently unknown KURL problem returning path with prefixed /

 M  +7 -2      file.cc  


--- trunk/KDE/kdelibs/kioslave/file/file.cc #611200:611201
@@ -1252,9 +1252,14 @@
 	finished();
 	return;
     }
-
+#ifdef Q_WS_WIN
+    kDebug(7101) << "========= path " << url.path() << " =========" << endl;
+    kDebug(7101) << "win32: fix KUrl::path()" << endl;
+    int start = (url.path()[0] == '/') ? 1 : 0;
+    QByteArray _path( QFile::encodeName(url.path().mid(start)));
+#else
     QByteArray _path( QFile::encodeName(url.path()));
-
+#endif
     KDE_struct_stat buff;
     if ( KDE_stat( _path.data(), &buff ) == -1 ) {
 	error( KIO::ERR_DOES_NOT_EXIST, url.path() );
[prev in list] [next in list] [prev in thread] [next in thread] 

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