mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-08 12:41:42 -04:00
++
This commit is contained in:
parent
93478785aa
commit
d4a58864ff
1 changed files with 4 additions and 2 deletions
|
@ -74,7 +74,7 @@ BOOL CCellTag::OnInitDialog()
|
|||
|
||||
CComboBox& m_Tag=*((CComboBox*)GetDlgItem(IDC_TAG));
|
||||
|
||||
if(ini.sections.find("Tags")==ini.sections.end())
|
||||
if(!ini.TryGetSection("Tags"))
|
||||
{
|
||||
MessageBox("No tags are specified.");
|
||||
OnCancel();
|
||||
|
@ -82,7 +82,9 @@ BOOL CCellTag::OnInitDialog()
|
|||
else
|
||||
{
|
||||
ListTags(m_Tag, FALSE);
|
||||
if(m_tag=="") m_Tag.SetCurSel(0);
|
||||
if (m_tag == "") {
|
||||
m_Tag.SetCurSel(0);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateStrings();
|
||||
|
|
Loading…
Add table
Reference in a new issue