Skip to content

Commit c186f8d

Browse files
chaoticgdF0bes
authored andcommitted
Qt: Fix crash when closing OSD font picker dialog
1 parent eed53d1 commit c186f8d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

pcsx2-qt/Settings/OSDSettingsWidget.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ void OSDSettingsWidget::onBrowseOsdFontPathClicked()
184184
saveOsdFontPathSetting(QDir::toNativeSeparators(selected));
185185
});
186186

187-
connect(m_font_picker, &QObject::destroyed, this, [this]() {
188-
m_font_picker = nullptr;
189-
});
190-
191187
m_font_picker->show();
192188
}
193189

@@ -313,4 +309,4 @@ void OSDSettingsWidget::onDeselectAllClicked()
313309
m_ui.warnAboutUnsafeSettings->setChecked(true);
314310
}
315311

316-
#include "moc_OSDSettingsWidget.cpp"
312+
#include "moc_OSDSettingsWidget.cpp"

0 commit comments

Comments
 (0)