mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-23 21:41:32 -05:00
Ensure correct opencl device is populated when platform setting is changed
This fixes an issue where the options dialog displays the incorrect device when it is first opened, when using a device other than 0
This commit is contained in:
parent
c01f444d52
commit
eef9a30cad
@ -134,6 +134,9 @@ void FractoriumOptionsDialog::OnPlatformComboCurrentIndexChanged(int index)
|
|||||||
|
|
||||||
for (size_t i = 0; i < devices.size(); i++)
|
for (size_t i = 0; i < devices.size(); i++)
|
||||||
ui.DeviceCombo->addItem(QString::fromStdString(devices[i]));
|
ui.DeviceCombo->addItem(QString::fromStdString(devices[i]));
|
||||||
|
|
||||||
|
if (ui.PlatformCombo->currentIndex() == m_Settings->PlatformIndex())
|
||||||
|
ui.DeviceCombo->setCurrentIndex(m_Settings->DeviceIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user