Commit d5a1eff8 authored by Tobias Hunger's avatar Tobias Hunger

CMake: Fix warning about empty filename after persisting cmake config

Change-Id: I2639059055cc42cf6ab9431f4885a01970980fca
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 1f7582e8
......@@ -212,10 +212,8 @@ void BuildDirManager::parse()
QTC_ASSERT(tool, return);
QTC_ASSERT(!generator.isEmpty(), return);
// Pop up a dialog asking the user to rerun cmake
QString cbpFile = CMakeManager::findCbpFile(QDir(workDirectory().toString()));
QFileInfo cbpFileFi(cbpFile);
const QString cbpFile = CMakeManager::findCbpFile(QDir(workDirectory().toString()));
const QFileInfo cbpFileFi = cbpFile.isEmpty() ? QFileInfo() : QFileInfo(cbpFile);
if (!cbpFileFi.exists()) {
// Initial create:
startCMake(tool, generator, intendedConfiguration());
......
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