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:
parent
2a5325af51
commit
0d1e72248e
@ -384,7 +384,7 @@ QStringList PackageStructure::mimetypes(const char *key) const
|
|||||||
void PackageStructure::setPath(const QString &path)
|
void PackageStructure::setPath(const QString &path)
|
||||||
{
|
{
|
||||||
KUrl url(path);
|
KUrl url(path);
|
||||||
QDir dir(url.path());
|
QDir dir(url.toLocalFile());
|
||||||
QString basePath = dir.canonicalPath();
|
QString basePath = dir.canonicalPath();
|
||||||
bool valid = QFile::exists(basePath);
|
bool valid = QFile::exists(basePath);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user