Skip to content

Commit c8ff9a5

Browse files
committed
Fix access violation when reopening same menu item
1 parent e8f8282 commit c8ff9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dlangui/widgets/menu.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ class MenuWidgetBase : ListWidget {
813813
//selectItem(-1);
814814
selectOnHover = false;
815815
} else {
816-
if(_openedPopupIndex == index)
816+
if(_openedPopup !is null && _openedPopupIndex == index)
817817
{
818818
_openedPopup.close();
819819
_openedPopup = null;

0 commit comments

Comments
 (0)