qt: For device config dialogs, default to the settings dialog as the parent
Fixes (somehow) controls being non-interactable when no parent dialog is passed and 86Box is running in settings-only mode
This commit is contained in:
@@ -347,7 +347,7 @@ SettingsMachine::on_pushButtonConfigure_clicked()
|
||||
// deviceconfig_inst_open
|
||||
int machineId = ui->comboBoxMachine->currentData().toInt();
|
||||
const auto *device = machine_get_device(machineId);
|
||||
DeviceConfig::ConfigureDevice(device, 0, qobject_cast<Settings *>(Settings::settings));
|
||||
DeviceConfig::ConfigureDevice(device);
|
||||
}
|
||||
|
||||
void SettingsMachine::on_checkBoxFPUSoftfloat_stateChanged(int state) {
|
||||
|
||||
Reference in New Issue
Block a user