don't mess up report about failures when removing multiple files

This commit is contained in:
Oswald Buddenhagen
2010-01-15 18:46:02 +01:00
parent 69028643b2
commit 95a9b64c4a

View File

@@ -699,10 +699,9 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
ProItem *item = values.at(i);
if (item->kind() == ProItem::ValueKind) {
ProValue *val = static_cast<ProValue *>(item);
int index = relativeFilePaths.indexOf(val->value());
if (index != -1) {
if (relativeFilePaths.contains(val->value())) {
notChanged->removeOne(priFileDir.absoluteFilePath(val->value()));
delete values.takeAt(i);
notChanged->removeAt(index);
}
}
}