Commit 0146be39 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Prevent some warnings on the console



Make sure the different paths are not empty to avoid warnings about
them being so.

Change-Id: I9ac08bb30a87e1b77c2b98c58c502eb41be36c1b
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 0ce0a053
......@@ -136,7 +136,7 @@ QString QbsInstallStep::absoluteInstallRoot() const
{
const qbs::ProjectData *data = static_cast<QbsProject *>(project())->qbsProjectData();
QString path = installRoot();
if (data)
if (data && !data->buildDirectory().isEmpty() && !path.isEmpty())
path = QDir(data->buildDirectory()).absoluteFilePath(path);
return path;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment