summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-07-25 13:35:07 -0700
committerAntónio Fernandes <antoniof@gnome.org>2022-08-01 07:13:02 +0000
commit6981ad8777f2fe6d50e8c9a66d274a324aef79cb (patch)
treea1459e519735942dc68ae666a21364e64aea4a8a
parentd6982dba131959a504c73d3037bdf48c0ec17df4 (diff)
downloadnautilus-6981ad8777f2fe6d50e8c9a66d274a324aef79cb.tar.gz
list-base: Update files view selection text when item removed
The selection text at the bottom on the view is usually updated via the signal from the view-model GtkSelectionModel::selection-changed This works except when items are removed, the signal emits before the item is fully removed. Rather than listening for all item changes (i.e. GListModel::items-changed), update the selection text when items are removed Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2338
-rw-r--r--src/nautilus-list-base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index 49751c8c6..4bd754b8e 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -1040,6 +1040,7 @@ real_remove_file (NautilusFilesView *files_view,
if (item != NULL)
{
nautilus_view_model_remove_item (priv->model, item);
+ nautilus_files_view_notify_selection_changed (files_view);
}
}