Commit ea9c5efa authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

save possible modifications to pro file *before* re-reading it ...

parent cc709e96
......@@ -631,6 +631,12 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
if (filePaths.isEmpty())
*notChanged = filePaths;
// Check for modified editors
if (!saveModifiedEditors(m_projectFilePath))
ProFileReader *reader = m_project->createProFileReader(m_qt4ProFileNode);
if (!reader->readProFile(m_qt4ProFileNode->path())) {
m_project->proFileParseError(tr("Error while parsing file %1. Giving up.").arg(m_projectFilePath));
......@@ -643,14 +649,6 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
m_project->proFileParseError(tr("Error while changing pro file %1.").arg(m_projectFilePath));
*notChanged = filePaths;
// Check for modified editors
if (!saveModifiedEditors(m_projectFilePath)) {
const QStringList vars = varNames(fileType);
QDir priFileDir = QDir(m_projectDir);
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