diff options
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 304625cd7..431f51d73 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -28,9 +28,9 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent) | |||
| 28 | 28 | ||
| 29 | SetConfiguration(); | 29 | SetConfiguration(); |
| 30 | 30 | ||
| 31 | connect(ui->api, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, | 31 | connect(ui->api, qOverload<int>(&QComboBox::currentIndexChanged), this, |
| 32 | [this] { UpdateDeviceComboBox(); }); | 32 | [this] { UpdateDeviceComboBox(); }); |
| 33 | connect(ui->device, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, | 33 | connect(ui->device, qOverload<int>(&QComboBox::activated), this, |
| 34 | [this](int device) { UpdateDeviceSelection(device); }); | 34 | [this](int device) { UpdateDeviceSelection(device); }); |
| 35 | 35 | ||
| 36 | connect(ui->bg_button, &QPushButton::clicked, this, [this] { | 36 | connect(ui->bg_button, &QPushButton::clicked, this, [this] { |
| @@ -112,7 +112,7 @@ void ConfigureGraphics::UpdateDeviceComboBox() { | |||
| 112 | enabled = false; | 112 | enabled = false; |
| 113 | break; | 113 | break; |
| 114 | case Settings::RendererBackend::Vulkan: | 114 | case Settings::RendererBackend::Vulkan: |
| 115 | for (const auto device : vulkan_devices) { | 115 | for (const auto& device : vulkan_devices) { |
| 116 | ui->device->addItem(device); | 116 | ui->device->addItem(device); |
| 117 | } | 117 | } |
| 118 | ui->device->setCurrentIndex(vulkan_device); | 118 | ui->device->setCurrentIndex(vulkan_device); |