diff --git a/src/dlangui/widgets/menu.d b/src/dlangui/widgets/menu.d index 5b64ff8f..eca07852 100644 --- a/src/dlangui/widgets/menu.d +++ b/src/dlangui/widgets/menu.d @@ -507,6 +507,9 @@ class MenuWidgetBase : ListWidget { } @property void menuItems(MenuItem item) { + // Do not reassign the same item (https://github.com/buggins/dlangui/issues/613) + if(_item == item) + return; if (_item) { destroy(_item); _item = null;