Skip to content
Snippets Groups Projects
Commit 5492f458 authored by Danny Auble's avatar Danny Auble
Browse files

fix for seg fault on button-press-event on the Visible tab's tab

parent c9cef364
No related branches found
No related tags found
No related merge requests found
...@@ -831,7 +831,7 @@ extern void tab_pressed(GtkWidget *widget, GdkEventButton *event, ...@@ -831,7 +831,7 @@ extern void tab_pressed(GtkWidget *widget, GdkEventButton *event,
/* single click with the right mouse button? */ /* single click with the right mouse button? */
gtk_notebook_set_current_page(GTK_NOTEBOOK(main_notebook), gtk_notebook_set_current_page(GTK_NOTEBOOK(main_notebook),
display_data->extra); display_data->extra);
if(event->button == 3) { if((display_data->extra != TAB_PAGE) && (event->button == 3)) {
right_button_pressed(NULL, NULL, event, right_button_pressed(NULL, NULL, event,
&signal_params, TAB_CLICKED); &signal_params, TAB_CLICKED);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment