VirtualBox

Changeset 17084 in vbox for trunk


Ignore:
Timestamp:
Feb 24, 2009 5:49:57 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: nicer error message if USB is not available on Linux hosts

File:
1 edited

Legend:

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

    r17071 r17084  
    689689        return;
    690690
     691#ifdef RT_OS_LINUX
     692    /* xxx There is no macro to turn an error into a warning, but we need
     693     *     to do that here. */
     694    if (res.rc() == (VBOX_E_HOST_ERROR & ~0x80000000))
     695    {
     696        message (mainWindowShown(), VBoxProblemReporter::Warning,
     697                 tr ("Could not access USB on the host system, because "
     698                     "neither the USB file system (usbfs) nor the DBus "
     699                     "and hal services are currently available. If you "
     700                     "wish to use host USB devices inside guest systems, "
     701                     "you must correct this and restart VirtualBox."),
     702                 formatErrorInfo (res),
     703                 "cannotAccessUSB" /* aAutoConfirmId */);
     704        return;
     705    }
     706#endif
    691707    message (mainWindowShown(), res.isWarning() ? Warning : Error,
    692708             tr ("Failed to access the USB subsystem."),
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