Commit f9c5799c authored by Matthias Clasen's avatar Matthias Clasen
parent 661da555
......@@ -1886,6 +1886,7 @@ remove_file (GtkFileSystemModel *model,
GFile *file)
FileModelNode *node;
gboolean was_visible;
guint id;
guint row;
......@@ -1897,6 +1898,7 @@ remove_file (GtkFileSystemModel *model,
node = get_node (model, id);
was_visible = node->visible;
row = node_get_tree_row (model, id);
node_invalidate_index (model, id);
......@@ -1912,6 +1914,7 @@ remove_file (GtkFileSystemModel *model,
/* We don't need to resort, as removing a row doesn't change the sorting order of the other rows */
if (was_visible)
emit_row_deleted_for_row (model, row);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment