use toLocalFile() instead of path(), since path() returns a path prepended by / which is invalid on windows

svn path=/trunk/KDE/kdelibs/; revision=1034397
This commit is contained in:
Carlo Segato 2009-10-12 15:47:38 +00:00
parent 2a5325af51
commit 0d1e72248e

View File

@ -384,7 +384,7 @@ QStringList PackageStructure::mimetypes(const char *key) const
void PackageStructure::setPath(const QString &path)
{
KUrl url(path);
QDir dir(url.path());
QDir dir(url.toLocalFile());
QString basePath = dir.canonicalPath();
bool valid = QFile::exists(basePath);