GUI: fix removing of attachments

This commit is contained in:
Moritz Bunkus 2015-07-11 21:26:57 +02:00
parent a6afddc2f3
commit be286bc185

View File

@ -80,7 +80,7 @@ AttachmentModel::removeSelectedAttachments(QItemSelection const &selection) {
auto sortedRowsToRemove = rowsToRemove.toList();
std::sort(sortedRowsToRemove.begin(), sortedRowsToRemove.end(), std::greater<int>());
for (auto row : rowsToRemove)
for (auto row : sortedRowsToRemove)
removeRow(row);
}