[gedit] file-browser: fix assert when going up in the tree
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] file-browser: fix assert when going up in the tree
- Date: Mon, 26 Nov 2018 18:30:58 +0000 (UTC)
commit d2da577eec31867f0c2e69f1c64f7fb922f88bd2
Author: Sebastien Lafargue <slafargue gnome org>
Date: Mon Nov 26 19:29:53 2018 +0100
file-browser: fix assert when going up in the tree
plugins/filebrowser/gedit-file-browser-store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c
index 582fcc30d..cba273b11 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -1207,7 +1207,7 @@ row_deleted (GeditFileBrowserStore *model,
GtkTreePath *copy;
/* We should always be called when the row is still inserted */
- g_return_if_fail (node->inserted == TRUE);
+ g_return_if_fail (node->inserted == TRUE || NODE_IS_DUMMY (node));
hidden = FILE_IS_HIDDEN (node->flags);
node->flags &= ~GEDIT_FILE_BROWSER_STORE_FLAG_IS_HIDDEN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]