Use KUrl instead of plain QString to enable the use of

full urls like nepomuksearch:/ .

svn path=/trunk/KDE/kdelibs/; revision=1022157
This commit is contained in:
Artur Duque de Souza 2009-09-10 22:53:41 +00:00
parent d1c51d506d
commit 6dab30af74

View File

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