Skip to content

Commit

Permalink
Fix critical when right-clicking on the document notebook outside a tab
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Dec 4, 2017
1 parent bd22fef commit 4a304e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notebook.c
Expand Up @@ -503,7 +503,7 @@ static void show_tab_bar_popup_menu(GdkEventButton *event, GeanyDocument *doc)
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(on_close_documents_right_activate), doc);
gtk_widget_set_sensitive(GTK_WIDGET(menu_item), has_tabs_on_right(doc));
gtk_widget_set_sensitive(GTK_WIDGET(menu_item), doc != NULL && has_tabs_on_right(doc));

menu_item = ui_image_menu_item_new(GTK_STOCK_CLOSE, _("C_lose All"));
gtk_widget_show(menu_item);
Expand Down

0 comments on commit 4a304e9

Please sign in to comment.