Fix phantom docked panels issue after restoring from systray

Fixes visual bug and potential crash in the #10512.

Fix #10512, close #10711
This commit is contained in:
xomx 2021-10-25 17:16:13 +02:00 committed by Don HO
parent d192f58b5b
commit 09711cee28

View File

@ -205,8 +205,11 @@ void DockingManager::showFloatingContainers(bool show)
{
size_t iElementCnt = _vContainer[i]->getElementCnt();
if (iElementCnt > 0)
{
if (0 < ::SendMessage(_vContainer[i]->getTabWnd(), TCM_GETITEMCOUNT, 0, 0)) // any real item(s)?
_vContainer[i]->display(show);
}
}
}
LRESULT DockingManager::runProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)