Skip to content

Commit

Permalink
Fix create when selection is in top of path
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJAllan committed Oct 14, 2020
1 parent 06a38f4 commit 8ece745
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions treebrowser/src/treebrowser.c
Expand Up @@ -1076,7 +1076,13 @@ on_menu_create_new_object(GtkMenuItem *menuitem, const gchar *type)
gtk_tree_model_get(model, &iter_parent, TREEBROWSER_COLUMN_URI, &uri, -1);
}
else
{
gchar* tmp = g_path_get_dirname(uri);
g_free(uri);
uri = tmp;

refresh_root = TRUE;
}
}
}
else
Expand Down

0 comments on commit 8ece745

Please sign in to comment.