Fix modal error in EnhancementUI
This commit is contained in:
parent
a4f904e4d7
commit
89d56ff4fa
Source/Project64/UserInterface
|
@ -75,7 +75,8 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
CEnhancementUI::CEnhancementUI(void) :
|
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)
|
if (BlockExecution)
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
|
||||||
m_bModal = true;
|
m_bModal = true;
|
||||||
#endif
|
|
||||||
DoModal(hParent);
|
DoModal(hParent);
|
||||||
}
|
}
|
||||||
else if (m_hWnd != NULL)
|
else if (m_hWnd != NULL)
|
||||||
|
@ -98,9 +97,7 @@ void CEnhancementUI::Display(HWND hParent, bool BlockExecution)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
|
||||||
m_bModal = false;
|
m_bModal = false;
|
||||||
#endif
|
|
||||||
Create(hParent);
|
Create(hParent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,4 +67,5 @@ private:
|
||||||
CEnhancementList m_Enhancements;
|
CEnhancementList m_Enhancements;
|
||||||
CTreeViewCtrl m_TreeList;
|
CTreeViewCtrl m_TreeList;
|
||||||
HTREEITEM m_hSelectedItem;
|
HTREEITEM m_hSelectedItem;
|
||||||
|
bool m_bModal;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue