summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-12-26 21:33:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-12-26 21:33:19 (GMT)
commit67b4887317b7394d63b543aa48cb368406374103 (patch)
tree7d05c391f47f1971d11115539a7306055385d01a /src/gui/menus
parent181e3a9a8819ba50c74f4864c0fca111e375aa5e (diff)
Handled swapping closures when signaling to the main thread.
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/project.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c
index 2930a95..c46c017 100644
--- a/src/gui/menus/project.c
+++ b/src/gui/menus/project.c
@@ -228,8 +228,8 @@ static void mcb_project_add_shellcode(GtkMenuItem *menuitem, GMenuBar *bar)
if (binary != NULL)
{
- g_signal_connect(binary, "disassembly-done",
- G_CALLBACK(g_study_project_add_loaded_binary), get_current_project());
+ g_signal_connect_swapped(binary, "disassembly-done",
+ G_CALLBACK(g_study_project_attach_binary), get_current_project());
g_loaded_binary_analyse(binary);
}