Detach the scrollbars before deleting fExpando.

... when rebuilding the application bar.

This fixes a Deskbar crash on resolution change because the lower
scrollbar is a child of fExpando so it must be removed and deleted
before fExpando is. So the tear down is remote scroll arrows
(if attached) then remote fExpando, then remove the scroll arrow
container view. The application bar is then rebuilt in reverse.
This commit is contained in:
John Scipione
2012-11-12 22:03:19 -05:00
parent 36ac19ebc1
commit 9c5644aa09
+3
View File
@@ -443,6 +443,9 @@ TBarView::PlaceTray(bool vertSwap, bool leftSwap)
void
TBarView::PlaceApplicationBar()
{
if (fScrollArrowView != NULL)
fScrollArrowView->DetachScrollers();
if (fExpando != NULL) {
SaveExpandedItems();
fExpando->RemoveSelf();