Commit e98282fc authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix warnings about QFileInfo being called with empty path

parent 9bad0c01
......@@ -234,6 +234,8 @@ QString Project::projectDirectory() const
QString Project::projectDirectory(const QString &proFile)
{
if (proFile.isEmpty())
return QString();
QFileInfo info(proFile);
return info.absoluteDir().path();
}
......
......@@ -353,7 +353,7 @@ TargetSetupPage::recursivelyCheckDirectoryForBuild(const QString &directory, con
{
QList<ImportInfo> results;
if (maxdepth <= 0)
if (maxdepth <= 0 || directory.isEmpty())
return results;
// Check for in-source builds first:
......
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