LarsGit223 commented on this pull request.
wb_project_add_directory(project, dirname);
+ sidebar_update(SIDEBAR_CONTEXT_DIRECTORY_ADDED, &context); + g_free(dirname); + } + } +} + + +/* Handle popup menu item "Remove directory" */ +static void popup_menu_on_remove_directory(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gpointer user_data) +{ + SIDEBAR_CONTEXT context; + + if (sidebar_file_view_get_selected_context(&context) + && + context.project != NULL && context.directory != NULL)
Adjusted. Logical operator and following conditions are now on one line.