forked from qt-creator/qt-creator
Project: Improve default implementation of Project::needsConfiguration
Change-Id: Ic4d227334d818658f179c0589462551509274c17 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -813,7 +813,7 @@ void Project::setNamedSettings(const QString &name, const QVariant &value)
|
||||
|
||||
bool Project::needsConfiguration() const
|
||||
{
|
||||
return false;
|
||||
return d->m_targets.isEmpty();
|
||||
}
|
||||
|
||||
void Project::configureAsExampleProject(const QSet<Core::Id> &platforms)
|
||||
@@ -933,6 +933,8 @@ public:
|
||||
void testParsingFinished(bool success) {
|
||||
emitParsingFinished(success);
|
||||
}
|
||||
|
||||
bool needsConfiguration() const final { return false; }
|
||||
};
|
||||
|
||||
class TestProjectNode : public ProjectNode
|
||||
|
||||
Reference in New Issue
Block a user