Less use of slow methods.

This commit is contained in:
con
2009-12-09 15:30:23 +01:00
parent 9097149cee
commit 3ab0a28cca
7 changed files with 12 additions and 13 deletions

View File

@@ -390,8 +390,8 @@ QList<IFile *> FileManager::saveModifiedFiles(const QList<IFile *> &files,
// There can be several FileInterfaces pointing to the same file
// Select one that is not readonly.
if (!(modifiedFilesMap.values().contains(name)
&& file->isReadOnly()))
if (!(modifiedFilesMap.key(name, 0)
&& file->isReadOnly()))
modifiedFilesMap.insert(file, name);
}
}