summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spendrin <ps_ml@gmx.de>2012-03-06 13:16:38 (GMT)
committerPatrick Spendrin <ps_ml@gmx.de>2012-03-06 13:17:24 (GMT)
commit9d025212a78237a48308a691cb1448ce3703b4e4 (patch)
tree4db06c51a376d1d4be2d62e64a2ab23c32a8ad44
parentbe3d6cd4e8b981709015ffed11cbe3e9abd7c7ca (diff)
fix moving files from and to the trash
BUG: 229465
-rw-r--r--kioslave/trash/kio_trash_win.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kioslave/trash/kio_trash_win.cpp b/kioslave/trash/kio_trash_win.cpp
index 109e628..ab8f454 100644
--- a/kioslave/trash/kio_trash_win.cpp
+++ b/kioslave/trash/kio_trash_win.cpp
@@ -411,8 +411,7 @@ void TrashProtocol::get( const KUrl& url )
bool TrashProtocol::doFileOp(const KUrl &url, UINT wFunc, FILEOP_FLAGS fFlags)
{
- // remove first '/' - can't use toLocalFile() because scheme is not file://
- const QString path = url.path().mid(1).replace(QLatin1Char('/'),QLatin1Char('\\'));
+ const QString path = url.path().replace(QLatin1Char('/'),QLatin1Char('\\'));
// must be double-null terminated.
QByteArray delBuf( ( path.length() + 2 ) * 2, 0 );
memcpy( delBuf.data(), path.utf16(), path.length() * 2 );