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
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ void DockingManager::showFloatingContainers(bool show)
{
size_t iElementCnt = _vContainer[i]->getElementCnt();
if (iElementCnt > 0)
_vContainer[i]->display(show);
{
if (0 < ::SendMessage(_vContainer[i]->getTabWnd(), TCM_GETITEMCOUNT, 0, 0)) // any real item(s)?
_vContainer[i]->display(show);
}
}
}