mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Qt: Fix crash when closing OSD font picker dialog
This commit is contained in:
@@ -184,10 +184,6 @@ void OSDSettingsWidget::onBrowseOsdFontPathClicked()
|
||||
saveOsdFontPathSetting(QDir::toNativeSeparators(selected));
|
||||
});
|
||||
|
||||
connect(m_font_picker, &QObject::destroyed, this, [this]() {
|
||||
m_font_picker = nullptr;
|
||||
});
|
||||
|
||||
m_font_picker->show();
|
||||
}
|
||||
|
||||
@@ -313,4 +309,4 @@ void OSDSettingsWidget::onDeselectAllClicked()
|
||||
m_ui.warnAboutUnsafeSettings->setChecked(true);
|
||||
}
|
||||
|
||||
#include "moc_OSDSettingsWidget.cpp"
|
||||
#include "moc_OSDSettingsWidget.cpp"
|
||||
|
||||
Reference in New Issue
Block a user