VirtualBox

Changeset 45346 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2013 5:51:15 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Message-center: VM settings stuff: Get rid of some annoying async warning.

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

Legend:

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

    r45342 r45346  
    24762476void UIMessageCenter::remindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent)
    24772477{
    2478     emit sigRemindAboutUnsupportedUSB2(strExtPackName, pParent);
     2478    if (warningShown("remindAboutUnsupportedUSB2"))
     2479        return;
     2480    setWarningShown("remindAboutUnsupportedUSB2", true);
     2481
     2482    message(pParent ? pParent : mainMachineWindowShown(), MessageType_Warning,
     2483            tr("<p>USB 2.0 is currently enabled for this virtual machine. "
     2484               "However, this requires the <b><nobr>%1</nobr></b> to be installed.</p>"
     2485               "<p>Please install the Extension Pack from the VirtualBox download site. "
     2486               "After this you will be able to re-enable USB 2.0. "
     2487               "It will be disabled in the meantime unless you cancel the current settings changes.</p>")
     2488               .arg(strExtPackName));
     2489
     2490    setWarningShown("remindAboutUnsupportedUSB2", false);
    24792491}
    24802492
     
    26062618}
    26072619
    2608 void UIMessageCenter::sltRemindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent)
    2609 {
    2610     if (warningShown("sltRemindAboutUnsupportedUSB2"))
    2611         return;
    2612     setWarningShown("sltRemindAboutUnsupportedUSB2", true);
    2613 
    2614     message(pParent ? pParent : mainMachineWindowShown(), MessageType_Warning,
    2615             tr("<p>USB 2.0 is currently enabled for this virtual machine. "
    2616                "However, this requires the <b><nobr>%1</nobr></b> to be installed.</p>"
    2617                "<p>Please install the Extension Pack from the VirtualBox download site. "
    2618                "After this you will be able to re-enable USB 2.0. "
    2619                "It will be disabled in the meantime unless you cancel the current settings changes.</p>")
    2620                .arg(strExtPackName));
    2621 
    2622     setWarningShown("sltRemindAboutUnsupportedUSB2", false);
    2623 }
    2624 
    26252620UIMessageCenter::UIMessageCenter()
    26262621{
     
    26512646    connect(this, SIGNAL(sigRemindAboutWrongColorDepth(ulong, ulong)),
    26522647            this, SLOT(sltRemindAboutWrongColorDepth(ulong, ulong)), Qt::QueuedConnection);
    2653     connect(this, SIGNAL(sigRemindAboutUnsupportedUSB2(const QString&, QWidget*)),
    2654             this, SLOT(sltRemindAboutUnsupportedUSB2(const QString&, QWidget*)), Qt::QueuedConnection);
    26552648
    26562649    /* Translations for Main.
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r45342 r45346  
    6767    /* Notifiers: Synchronization stuff: */
    6868    void sigRemindAboutWrongColorDepth(ulong uRealBPP, ulong uWantedBPP);
    69     void sigRemindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent);
    7069
    7170public:
     
    413412    /* Handlers: Synchronization stuff: */
    414413    void sltRemindAboutWrongColorDepth(ulong uRealBPP, ulong uWantedBPP);
    415     void sltRemindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent);
    416414
    417415private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r45196 r45346  
    574574                            .arg(GUI_ExtPackName);
    575575        msgCenter().remindAboutUnsupportedUSB2(GUI_ExtPackName, this);
     576        mCbUSB2->setChecked(false);
    576577        return true;
    577578    }
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