VirtualBox

Ignore:
Timestamp:
Mar 20, 2023 11:15:27 AM (21 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10343: Machine settings / USB page: While adding USB device filter on the basis of existing USB device we should (should we?) init port field as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.cpp

    r98103 r99062  
    403403     * in the filter since the same device plugged into a different socket
    404404     * will not match the filter in this case. */
    405 #if 0
    406     newFilterData.m_strPort = QString().sprintf("%04hX", comUsb.GetPort());
    407 #endif
     405    newFilterData.m_strPort = QString::asprintf("%#06hX", comUsb.GetPort());
    408406    newFilterData.m_strManufacturer = comUsb.GetManufacturer();
    409407    newFilterData.m_strProduct = comUsb.GetProduct();
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