diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-21 18:09:04 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-23 13:57:05 -0700 |
| commit | 89b6a4cbeedfeece3378b8f1907af6b1e2072061 (patch) | |
| tree | b7d60a7052fc45c3e5455ac28f064f61dce19c25 /Source/Core/DolphinQt/Settings/USBDeviceAddToWhitelistDialog.cpp | |
| parent | c629af631907b06c193137043fa86eb5ce739b95 (diff) | |
DolphinQt: resolve Qt5.15 deprecations
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); } |
