Skip to content

Commit

Permalink
gui: Get rid of a duplicate signal connection
Browse files Browse the repository at this point in the history
The function lepton_action_create_menu_item() creating a menu item
widget connects the "activate" signal to it before returning the
widget.  The code removed in the commit connected the same signal
to the returned widget second time.
  • Loading branch information
vzh committed May 20, 2024
1 parent 26f9783 commit 0ff5c9e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libleptongui/src/x_menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ schematic_window_create_main_popup_menu (GschemToplevel* w_current)
GSimpleAction* action = g_simple_action_new (e.action, NULL);
menu_item = lepton_action_create_menu_item (action, gettext (e.name), NULL);

g_signal_connect (menu_item,
"activate",
G_CALLBACK (&on_menu_item_activate),
action);

g_signal_connect (action,
"activate",
G_CALLBACK (g_menu_execute),
Expand Down

0 comments on commit 0ff5c9e

Please sign in to comment.