mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 15:16:13 -05:00
UI: Fix crash when closing missing files window
A crash would occur when clicking the 'x' button in the missing files dialog. This seemed to only happen in debug mode and using QT 5.15.0. Closes obsproject/obs-studio#4363 Fixes obsproject/obs-studio#4359
This commit is contained in:
@@ -1165,12 +1165,9 @@ retryScene:
|
||||
|
||||
if (obs_missing_files_count(files) > 0) {
|
||||
missDialog = new OBSMissingFiles(files, this);
|
||||
missDialog->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
missDialog->show();
|
||||
missDialog->raise();
|
||||
|
||||
auto close = [=]() { delete missDialog; };
|
||||
|
||||
connect(missDialog, &OBSMissingFiles::finished, close);
|
||||
} else {
|
||||
obs_missing_files_destroy(files);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user