Ask for saving when using the context menu

This commit is contained in:
dt
2010-03-01 17:28:46 +01:00
parent 73d6ea78fe
commit 431a276382

View File

@@ -281,7 +281,8 @@ void Qt4Manager::buildSubDirContextMenu()
if (Qt4ProFileNode *profile = qobject_cast<Qt4ProFileNode *>(m_contextNode))
bc->setSubNodeBuild(profile);
projectExplorer()->buildManager()->buildProject(bc);
if (projectExplorer()->saveModifiedFiles())
projectExplorer()->buildManager()->buildProject(bc);
bc->setSubNodeBuild(0);
}