VirtualBox

Changeset 2936 in vbox for trunk/src


Ignore:
Timestamp:
May 30, 2007 4:13:37 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Don't set the Port property when creating a USB filter from the existing device, since it will make problems for most users.

Location:
trunk/src/VBox/Frontends/VirtualBox/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h

    r2903 r2936  
    923923    filter.SetProductId (QString().sprintf ("%04hX", usb.GetProductId()));
    924924    filter.SetRevision (QString().sprintf ("%04hX", usb.GetRevision()));
     925    /* The port property depends on the host computer rather than on the USB
     926     * device itself; for this reason only a few people will want to use it in
     927     * the filter since the same device plugged into a different socket will
     928     * not match the filter in this case.  */
     929#if 0
     930    /// @todo set it anyway if Alt is currently pressed
    925931    filter.SetPort (QString().sprintf ("%04hX", usb.GetPort()));
     932#endif
    926933    filter.SetManufacturer (usb.GetManufacturer());
    927934    filter.SetProduct (usb.GetProduct());
    928935    filter.SetSerialNumber (usb.GetSerialNumber());
    929936    filter.SetRemote (usb.GetRemote() ? "yes" : "no");
     937
    930938    filter.SetActive (true);
    931939    addUSBFilter (filter, true);
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2932 r2936  
    20772077    filter.SetProductId (QString().sprintf ("%04hX", usb.GetProductId()));
    20782078    filter.SetRevision (QString().sprintf ("%04hX", usb.GetRevision()));
     2079    /* The port property depends on the host computer rather than on the USB
     2080     * device itself; for this reason only a few people will want to use it in
     2081     * the filter since the same device plugged into a different socket will
     2082     * not match the filter in this case.  */
     2083#if 0
     2084    /// @todo set it anyway if Alt is currently pressed
    20792085    filter.SetPort (QString().sprintf ("%04hX", usb.GetPort()));
     2086#endif
    20802087    filter.SetManufacturer (usb.GetManufacturer());
    20812088    filter.SetProduct (usb.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