diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2020-08-30 19:43:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-30 19:43:23 -0500 |
| commit | 0a63340c205ab21dab42ad616c67868c41ae5c06 (patch) | |
| tree | a4b70eb6f4dc64def9fecfb00ab21e93b89977c2 /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | |
| parent | 75b4f70e5eaf50e5c2a05633d2bf91d0b99c25a1 (diff) | |
| parent | 24e8ed8e2761ac991057ac0f808c3d2bd913fe5b (diff) | |
Merge pull request #9037 from shuffle2/code-cleanup
Code cleanup
Diffstat (limited to 'Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp index ba531093f0..5f9fdceca5 100644 --- a/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp +++ b/Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp @@ -168,10 +168,9 @@ void USBDeviceAddToWhitelistDialog::OnDeviceSelection() { // Not the nicest way of doing this but... QString device = usb_inserted_devices_list->currentItem()->text().left(9); - QString* vid = new QString( - device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[0]); - QString* pid = new QString( - device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[1]); + QStringList split = device.split(QString::fromStdString(":")); + QString* vid = new QString(split[0]); + QString* pid = new QString(split[1]); device_vid_textbox->setText(*vid); device_pid_textbox->setText(*pid); } |
