Merge pull request #1385 from admshao/fix-startup-crash

UI: Fix start up crash with saved projectors
master
Jim 2018-07-27 21:20:43 -07:00 committed by GitHub
commit 74093253bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);