Don't use event browser as area reference if it's not visible.

* Fixes a crash opening the API inspector if the event browser was
  closed.
This commit is contained in:
baldurk
2017-08-21 15:43:20 +01:00
parent a1369f05ba
commit 43ac48a493
+2 -1
View File
@@ -1404,7 +1404,8 @@ void MainWindow::on_action_API_Inspector_triggered()
}
else
{
if(m_Ctx.HasEventBrowser())
if(m_Ctx.HasEventBrowser() &&
ui->toolWindowManager->toolWindows().contains(m_Ctx.GetEventBrowser()->Widget()))
{
ToolWindowManager::AreaReference ref(
ToolWindowManager::BottomOf,