QbsProjectManager: Do not offer to add and remove files during a build.

The build graph is locked then. Disabling the action in the first place
is nicer than letting the respective qbs API call fail.

Change-Id: Icfb89b454a240253c9ddc7681b452d06ff0393dd
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Christian Kandeler
2014-07-24 12:18:29 +02:00
parent fc24fe726e
commit cf9d12ed41
3 changed files with 19 additions and 6 deletions

View File

@@ -189,6 +189,11 @@ QStringList QbsProject::files(Project::FilesMode fileMode) const
return result.toList();
}
bool QbsProject::isProjectEditable() const
{
return m_qbsProject.isValid() && !isParsing() && !ProjectExplorer::BuildManager::isBuilding();
}
class ChangeExpector
{
public: