From be286bc1851a6bdb9767674f4c051a2ad788f013 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 11 Jul 2015 21:26:57 +0200 Subject: [PATCH] GUI: fix removing of attachments --- src/mkvtoolnix-gui/merge/attachment_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/merge/attachment_model.cpp b/src/mkvtoolnix-gui/merge/attachment_model.cpp index 5bb86fd7f..3c73d20fd 100644 --- a/src/mkvtoolnix-gui/merge/attachment_model.cpp +++ b/src/mkvtoolnix-gui/merge/attachment_model.cpp @@ -80,7 +80,7 @@ AttachmentModel::removeSelectedAttachments(QItemSelection const &selection) { auto sortedRowsToRemove = rowsToRemove.toList(); std::sort(sortedRowsToRemove.begin(), sortedRowsToRemove.end(), std::greater()); - for (auto row : rowsToRemove) + for (auto row : sortedRowsToRemove) removeRow(row); }