[geany/geany-plugins] 6ba800: Fix create when selection is in top of path

Chris Allan git-noreply at xxxxx
Sat Jan 15 16:31:30 UTC 2022


Branch:      refs/heads/master
Author:      Chris Allan <cjallan at uci.edu>
Committer:   Chris Allan <chrisallan at protonmail.com>
Date:        Sat, 15 Jan 2022 16:31:30 UTC
Commit:      6ba8009841baa0cdceabb8e9797de0d016e60097
             https://github.com/geany/geany-plugins/commit/6ba8009841baa0cdceabb8e9797de0d016e60097

Log Message:
-----------
Fix create when selection is in top of path


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

Modified: treebrowser/src/treebrowser.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -1076,7 +1076,11 @@ on_menu_create_new_object(GtkMenuItem *menuitem, const gchar *type)
 				gtk_tree_model_get(model, &iter_parent, TREEBROWSER_COLUMN_URI, &uri, -1);
 			}
 			else
+			{
+				SETPTR(uri, g_path_get_dirname(uri));
+				
 				refresh_root = TRUE;
+			}
 		}
 	}
 	else



--------------
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