Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion panel/browser-panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,11 @@ void QCefWidgetInternal::showEvent(QShowEvent *event)
obs_browser_initialize();
connect(&timer, &QTimer::timeout, this, &QCefWidgetInternal::Init);
timer.start(500);
Init();
/* Not from inside showEvent: restoring a saved dock layout can
* show a dock and close it again at once, and creating the
* browser in between crashes CEF. With this widget as context,
* the call is dropped if the widget is destroyed first. */
QTimer::singleShot(0, this, &QCefWidgetInternal::Init);
}
}

Expand Down
Loading