summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-08-22 18:03:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-08-22 18:03:30 (GMT)
commit9dca3fdb21e3086363038926d4f49e1300b4130d (patch)
treee056d2b59aa8b73e63b8bb5bc74272cb8edc343e /src/gui/menus
parent119039519376c7fbc9ca5735844100467c30192a (diff)
Restored the operand display switch feature.
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/edition.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c
index b78c084..c9fe991 100644
--- a/src/gui/menus/edition.c
+++ b/src/gui/menus/edition.c
@@ -231,7 +231,8 @@ static void mcb_edition_switch_numeric_operand(GtkMenuItem *menuitem, gpointer u
g_object_unref(G_OBJECT(instr));
- g_loaded_binary_add_to_collection(binary, G_DB_ITEM(switcher));
+ if (switcher != NULL)
+ g_loaded_binary_add_to_collection(binary, G_DB_ITEM(switcher));
g_object_unref(G_OBJECT(proc));
g_object_unref(G_OBJECT(binary));