Make toolbar compatible with current plugins

This commit is contained in:
Don HO 2021-05-05 16:47:06 +02:00
parent 7d25394244
commit dc34284146
1 changed files with 1 additions and 1 deletions

View File

@ -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;