[EXPLORER]

* Fix count of visible buttons getting out of sync when removing buttons. Fixes empty space at the end of the notification toolbar.
CORE-8840 #resolve #comment This should be fixed as of r65805.

svn path=/trunk/; revision=65805
This commit is contained in:
David Quintana 2014-12-23 01:55:48 +00:00
parent b11d90c85f
commit c67d37f223

View file

@ -132,7 +132,6 @@ public:
tbBtn.fsState |= TBSTATE_HIDDEN; tbBtn.fsState |= TBSTATE_HIDDEN;
m_VisibleButtonCount--; m_VisibleButtonCount--;
} }
} }
/* TODO: support NIF_INFO, NIF_GUID, NIF_REALTIME, NIF_SHOWTIP */ /* TODO: support NIF_INFO, NIF_GUID, NIF_REALTIME, NIF_SHOWTIP */
@ -209,6 +208,12 @@ public:
return; return;
DeleteButton(index); DeleteButton(index);
if (!(notifyItem->dwState & NIS_HIDDEN))
{
m_VisibleButtonCount--;
}
delete notifyItem; delete notifyItem;
} }