mirror of https://github.com/buggins/dlangui.git
Fix #613
This commit is contained in:
parent
6250d4ef48
commit
098a604856
|
@ -507,6 +507,9 @@ class MenuWidgetBase : ListWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
@property void menuItems(MenuItem item) {
|
@property void menuItems(MenuItem item) {
|
||||||
|
// Do not reassign the same item (https://github.com/buggins/dlangui/issues/613)
|
||||||
|
if(_item == item)
|
||||||
|
return;
|
||||||
if (_item) {
|
if (_item) {
|
||||||
destroy(_item);
|
destroy(_item);
|
||||||
_item = null;
|
_item = null;
|
||||||
|
|
Loading…
Reference in New Issue