VirtualBox

Changeset 90167 in vbox


Ignore:
Timestamp:
Jul 13, 2021 12:49:25 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:3582. Don't show warning if VM hasn't got USB enabled or if it doesn't have any filters configured. This warning drives me crazy when running VBox w/o the USB drivers installed (windows).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r90086 r90167  
    7171#include "CVRDEServer.h"
    7272#include "CUSBController.h"
     73#include "CUSBDeviceFilter.h"
    7374#include "CUSBDeviceFilters.h"
    7475#include "CHostVideoInputDevice.h"
     
    18141815    CHost comHost = uiCommon().host();
    18151816    if (comHost.GetUSBDevices().isEmpty() && comHost.isWarning())
    1816         msgCenter().cannotEnumerateHostUSBDevices(comHost, activeMachineWindow());
     1817    {
     1818        /* Do not bitch if USB disabled: */
     1819        if (!machine().GetUSBControllers().isEmpty())
     1820        {
     1821            /* Do not bitch if there are no filters (check if enabled too?): */
     1822            if (!machine().GetUSBDeviceFilters().GetDeviceFilters().isEmpty())
     1823                msgCenter().cannotEnumerateHostUSBDevices(comHost, activeMachineWindow());
     1824        }
     1825    }
    18171826
    18181827    /* True by default: */
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