[geany/geany-plugins] abf633: TreeBrowser: Avoid double node clear

Chris Allan git-noreply at xxxxx
Sat Jan 2 10:45:12 UTC 2021


Branch:      refs/heads/master
Author:      Chris Allan <chrisallan at protonmail.com>
Committer:   Chris Allan <chrisallan at protonmail.com>
Date:        Wed, 14 Oct 2020 03:42:14 UTC
Commit:      abf633e26997173f417fc0f1093716a777f7f877
             https://github.com/geany/geany-plugins/commit/abf633e26997173f417fc0f1093716a777f7f877

Log Message:
-----------
TreeBrowser: Avoid double node clear


Modified Paths:
--------------
    treebrowser/src/treebrowser.c

Modified: treebrowser/src/treebrowser.c
3 lines changed, 1 insertions(+), 2 deletions(-)
===================================================================
@@ -1629,8 +1629,7 @@ on_treeview_changed(GtkWidget *widget, gpointer user_data)
 		if (g_file_test(uri, G_FILE_TEST_EXISTS)) {
 			if (!g_file_test(uri, G_FILE_TEST_IS_DIR) && CONFIG_ONE_CLICK_CHDOC)
 				document_open_file(uri, FALSE, NULL, NULL);
-		} else
-			treebrowser_tree_store_iter_clear_nodes(&iter, TRUE);
+		}
 
 		g_free(uri);
 	}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list