mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Qt: Fix camera string comparison in settings_dialog
The id() contains a QByteArray, not a QString.
This commit is contained in:
parent
669ce1faca
commit
441b324afe
1 changed files with 3 additions and 1 deletions
|
@ -1181,7 +1181,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
|
||||||
for (const QCameraDevice& camera_info : QMediaDevices::videoInputs())
|
for (const QCameraDevice& camera_info : QMediaDevices::videoInputs())
|
||||||
{
|
{
|
||||||
if (!camera_info.isNull())
|
if (!camera_info.isNull())
|
||||||
ui->cameraIdBox->addItem(camera_info.description(), camera_info.id());
|
{
|
||||||
|
ui->cameraIdBox->addItem(camera_info.description(), QString(camera_info.id()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (const int index = ui->cameraIdBox->findData(qstr(selected_camera)); index >= 0)
|
if (const int index = ui->cameraIdBox->findData(qstr(selected_camera)); index >= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue