diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_gtk.cc b/src/gui_gtk.cc index 12972cf..2a37306 100644 --- a/src/gui_gtk.cc +++ b/src/gui_gtk.cc @@ -382,8 +382,8 @@ void ListModelListener::rows_removed(GuiListModel*, size_t first, size_t last) { auto path = gtk_tree_path_new(); auto tree_model = GTK_TREE_MODEL(model_); - for (size_t row = last; row >= first; --row) { - gtk_tree_path_append_index(path, row); + for (size_t row = last + 1; row > first; --row) { + gtk_tree_path_append_index(path, row - 1); gtk_tree_model_row_deleted(tree_model, path); gtk_tree_path_up(path); } |
