[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs (silent)
From: Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date: 2007-11-18 22:02:42
Message-ID: 1195423362.082079.18501.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 738431 by chehrlic:
SVN_SILENT: small update for kurl/kioslavetest
M +1 -1 kdecore/io/kurl.cpp
M +1 -5 kio/tests/kioslavetest.cpp
M +1 -0 kioslave/file/file_win.cpp
--- trunk/KDE/kdelibs/kdecore/io/kurl.cpp #738430:738431
@@ -364,7 +364,7 @@
#ifdef Q_WS_WIN
kDebug(126) << "KUrl::KUrl " << " " << str.data();
if ( str[0] == '/' && (str[1] >= 'A' && str[1] <= 'Z' || str[1] >= 'a' && str[1] \
<= 'z') && str[2] == ':' )
- setPath( QString::fromUtf8( str.mid(2) ) );
+ setPath( QString::fromUtf8( str.mid( 1 ) ) );
else if ( (str[0] >= 'A' && str[0] <= 'Z' || str[0] >= 'a' && str[0] <= 'z') && \
str[1] == ':' ) setPath( QString::fromUtf8( str ) );
#else
--- trunk/KDE/kdelibs/kio/tests/kioslavetest.cpp #738430:738431
@@ -207,11 +207,7 @@
void KioslaveTest::startJob() {
-#ifdef Q_WS_WIN
- KUrl sCurrent( "file://"+QDir::currentPath() );
-#else
- KUrl sCurrent( QDir::currentPath() );
-#endif
+ KUrl sCurrent( QUrl::fromLocalFile( QDir::currentPath() ) );
QString sSrc( le_source->text() );
KUrl src = KUrl( sCurrent, sSrc );
--- trunk/KDE/kdelibs/kioslave/file/file_win.cpp #738430:738431
@@ -4,6 +4,7 @@
Copyright (C) 2000-2002 Waldo Bastian <bastian@kde.org>
Copyright (C) 2006 Allan Sandfeld Jensen <sandfeld@kde.org>
Copyright (C) 2007 Thiago Macieira <thiago@kde.org>
+ Copyright (C) 2007 Christian Ehrlicher <ch.ehrlicher@gmx.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic