提交 be8189b0 编写于 作者: S Shaolin

UI: Fix start up crash with saved projectors

This fixes a crash in case the user selected the option to save
projectors on exit and had multiple monitors at that time. Later on,
when obs is started again if the monitor list is lower now the open
projector code will return null when trying to create the saved
projector.

Just check if the returned projector pointer is valid before trying
to restore the saved geometry.
上级 d13bbe6e
......@@ -5692,7 +5692,7 @@ void OBSBasic::OpenSavedProjectors()
}
}
if (!info->geometry.empty()) {
if (projector && !info->geometry.empty()) {
QByteArray byteArray = QByteArray::fromBase64(
QByteArray(info->geometry.c_str()));
projector->restoreGeometry(byteArray);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册