VirtualBox

Changeset 30996 in vbox


Ignore:
Timestamp:
Jul 22, 2010 2:11:08 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: 3781: Warn when altering shared folders if guest additions are not installed or not yet loaded.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r30956 r30996  
    15971597}
    15981598
     1599void VBoxProblemReporter::remindAboutGuestAdditionsAreNotActive(QWidget *pParent)
     1600{
     1601    message (pParent, Warning,
     1602             tr("<p>The VirtualBox Guest Additions do not appear to be "
     1603                "available on this virtual machine, and shared folders "
     1604                "cannot be used without them. To use shared folders inside "
     1605                "the virtual machine, please install the Guest Additions "
     1606                "if they are not installed, or re-install them if they are "
     1607                "not working correctly, by selecting <b>Install Guest Additions</b> "
     1608                "from the <b>Machine</b> menu. "
     1609                "If they are installed but the machine is not yet fully started "
     1610                "then shared folders will be available once it is.</p>"),
     1611             "remindAboutGuestAdditionsAreNotInstalled");
     1612}
     1613
    15991614int VBoxProblemReporter::cannotFindGuestAdditions (const QString &aSrc1,
    16001615                                                   const QString &aSrc2)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h

    r30956 r30996  
    307307                                   const QString &, const QString &);
    308308
     309    void remindAboutGuestAdditionsAreNotActive(QWidget *pParent);
    309310    int cannotFindGuestAdditions (const QString &aSrc1, const QString &aSrc2);
    310311    void cannotDownloadGuestAdditions (const QString &aURL, const QString &aReason);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r30936 r30996  
    14571457    /* Show shared folders settings dialog: */
    14581458    UISharedFoldersDialog dlg(defaultMachineWindow()->machineWindow(), session());
     1459    if (!uisession()->isGuestAdditionsActive())
     1460        vboxProblem().remindAboutGuestAdditionsAreNotActive(defaultMachineWindow()->machineWindow());
    14591461    dlg.exec();
    14601462}
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