mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-15 18:27:29 +00:00
Fix for Advanced config tab's Clone drop-down menu
This commit is contained in:
@@ -234,9 +234,16 @@ int CPageAdvanced::GetCloneMenuItem(void)
|
|||||||
if (!bIsClone)
|
if (!bIsClone)
|
||||||
return MENUITEM_CLONEMIN;
|
return MENUITEM_CLONEMIN;
|
||||||
|
|
||||||
int nMenuItem = type - A2TYPE_PRAVETS;
|
int nMenuItem = MENUITEM_CLONEMIN;
|
||||||
if (nMenuItem < 0 || nMenuItem >= MENUITEM_CLONEMAX)
|
switch (type)
|
||||||
return MENUITEM_CLONEMIN;
|
{
|
||||||
|
case A2TYPE_PRAVETS82: nMenuItem = MENUITEM_PRAVETS82; break;
|
||||||
|
case A2TYPE_PRAVETS8M: nMenuItem = MENUITEM_PRAVETS8M; break;
|
||||||
|
case A2TYPE_PRAVETS8A: nMenuItem = MENUITEM_PRAVETS8A; break;
|
||||||
|
case A2TYPE_TK30002E: nMenuItem = MENUITEM_TK30002E; break;
|
||||||
|
default: // New clone needs adding here?
|
||||||
|
_ASSERT(0);
|
||||||
|
}
|
||||||
|
|
||||||
return nMenuItem;
|
return nMenuItem;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user