Make toolbar compatible with current plugins

pull/9838/head
Don HO 4 years ago
parent 7d25394244
commit dc34284146

@ -380,7 +380,7 @@ void ToolBar::reset(bool create)
void ToolBar::registerDynBtn(UINT messageID, toolbarIcons* tIcon)
{
// Note: Register of buttons only possible before init!
if ((_hSelf == NULL) && (messageID != 0) && (tIcon->hToolbarBmp != NULL) && (tIcon->hToolbarIcon != NULL))
if ((_hSelf == NULL) && (messageID != 0) && (tIcon->hToolbarBmp != NULL))
{
DynamicCmdIcoBmp dynList;
dynList._message = messageID;

Loading…
Cancel
Save