VirtualBox

Changeset 59381 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 18, 2016 5:17:24 PM (9 years ago)
Author:
vboxsync
Message:

Main,FE/Qt: Don't access the USB ID database for IHostUSBDevice::getManufacturer() and IHostUSBDevice::getProduct() because these attrtibutes might be used to initialize a filter. Ther filter won't work if the device doesn't expose a manufacturer or product and we pick one from the database and initialize the filter with bugref:7868

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r59032 r59381  
    884884    else
    885885    {
    886         QString m = aDevice.GetManufacturer().trimmed();
    887         QString p = aDevice.GetProduct().trimmed();
     886        QVector<QString> devInfoVector = aDevice.GetDeviceInfo();
     887        QString m;
     888        QString p;
     889
     890        if (devInfoVector.size() >= 1)
     891            m = devInfoVector[0].trimmed();
     892        if (devInfoVector.size() >= 2)
     893            p = devInfoVector[1].trimmed();
    888894
    889895        if (m.isEmpty() && p.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette