Commit 72f1955b authored by Daniel Teske's avatar Daniel Teske

GenericProject: Don't show externally modified dialog for addFiles

Change-Id: I3321e5c51f18388b8a691193159ef7e434971835
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 147ab7cc
......@@ -148,6 +148,7 @@ bool GenericProject::saveRawFileList(const QStringList &rawFileList)
bool GenericProject::saveRawList(const QStringList &rawList, const QString &fileName)
{
DocumentManager::expectFileChange(fileName);
// Make sure we can open the file for writing
Utils::FileSaver saver(fileName, QIODevice::Text);
if (!saver.hasError()) {
......@@ -156,9 +157,9 @@ bool GenericProject::saveRawList(const QStringList &rawList, const QString &file
stream << filePath << QLatin1Char('\n');
saver.setResult(&stream);
}
if (!saver.finalize(ICore::mainWindow()))
return false;
return true;
bool result = saver.finalize(ICore::mainWindow());
DocumentManager::unexpectFileChange(fileName);
return result;
}
bool GenericProject::addFiles(const QStringList &filePaths)
......
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