forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user