ws for readability
REVIEW:119992
This commit is contained in:
parent
cd87344d80
commit
faf75a95e5
@ -451,11 +451,13 @@ void Package::setPath(const QString &path)
|
|||||||
QStringList paths;
|
QStringList paths;
|
||||||
if (QDir::isRelativePath(path)) {
|
if (QDir::isRelativePath(path)) {
|
||||||
QString p;
|
QString p;
|
||||||
|
|
||||||
if (d->defaultPackageRoot.isEmpty()) {
|
if (d->defaultPackageRoot.isEmpty()) {
|
||||||
p = path % "/";
|
p = path % "/";
|
||||||
} else {
|
} else {
|
||||||
p = d->defaultPackageRoot % path % "/";
|
p = d->defaultPackageRoot % path % "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (QDir::isRelativePath(p)) {
|
if (QDir::isRelativePath(p)) {
|
||||||
paths << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, p, QStandardPaths::LocateDirectory);
|
paths << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, p, QStandardPaths::LocateDirectory);
|
||||||
} else {
|
} else {
|
||||||
@ -464,6 +466,7 @@ void Package::setPath(const QString &path)
|
|||||||
paths << p;
|
paths << p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//qDebug() << "paths:" << p << paths << d->defaultPackageRoot;
|
//qDebug() << "paths:" << p << paths << d->defaultPackageRoot;
|
||||||
} else {
|
} else {
|
||||||
const QDir dir(path);
|
const QDir dir(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user