mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Fixed crash when closing with autocomplete up
This commit is contained in:
parent
628a1340b2
commit
a469707377
4 changed files with 40 additions and 20 deletions
|
@ -2142,6 +2142,8 @@ namespace IDE.ui
|
|||
if ((mAutoCompleteListWidget != null) && (mAutoCompleteListWidget.mWidgetWindow == null))
|
||||
{
|
||||
mAutoCompleteListWidget.Cleanup();
|
||||
if (mListWindow?.mRootWidget == mAutoCompleteListWidget)
|
||||
mListWindow.mRootWidget = null;
|
||||
delete mAutoCompleteListWidget;
|
||||
}
|
||||
|
||||
|
@ -2154,6 +2156,8 @@ namespace IDE.ui
|
|||
if ((mInvokeWidget != null) && (mInvokeWidget.mWidgetWindow == null))
|
||||
{
|
||||
mInvokeWidget.Cleanup();
|
||||
if (mInvokeWindow?.mRootWidget == mInvokeWidget)
|
||||
mInvokeWindow.mRootWidget = null;
|
||||
delete mInvokeWidget;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue