Fix modal error in EnhancementUI

This commit is contained in:
zilmar 2021-02-02 13:55:28 +10:30
parent a4f904e4d7
commit 89d56ff4fa
2 changed files with 3 additions and 5 deletions

View File

@ -75,7 +75,8 @@ private:
};
CEnhancementUI::CEnhancementUI(void) :
m_hSelectedItem(NULL)
m_hSelectedItem(NULL),
m_bModal(false)
{
}
@ -87,9 +88,7 @@ void CEnhancementUI::Display(HWND hParent, bool BlockExecution)
}
if (BlockExecution)
{
#ifdef _DEBUG
m_bModal = true;
#endif
DoModal(hParent);
}
else if (m_hWnd != NULL)
@ -98,9 +97,7 @@ void CEnhancementUI::Display(HWND hParent, bool BlockExecution)
}
else
{
#ifdef _DEBUG
m_bModal = false;
#endif
Create(hParent);
}
}

View File

@ -67,4 +67,5 @@ private:
CEnhancementList m_Enhancements;
CTreeViewCtrl m_TreeList;
HTREEITEM m_hSelectedItem;
bool m_bModal;
};