# HG changeset patch # User moel.mich # Date 1286305153 0 # Node ID 88131b86378b23ed57ad10fbe787441e727612c3 # Parent be7dc4a856aa6d5ebeefd920a426632e59ff46f9 Fixed Issue 124. diff -r be7dc4a856aa -r 88131b86378b GUI/MainForm.cs --- a/GUI/MainForm.cs Mon Oct 04 17:34:58 2010 +0000 +++ b/GUI/MainForm.cs Tue Oct 05 18:59:13 2010 +0000 @@ -418,7 +418,7 @@ }; sensorContextMenu.MenuItems.Add(item); } - { + if (gadget != null) { MenuItem item = new MenuItem("Show in Gadget"); item.Checked = gadget.Contains(node.Sensor); item.Click += delegate(object obj, EventArgs args) {