VirtualBox

儲存庫 vbox 的更動 48022


忽略:
時間撮記:
2013-8-23 下午12:04:01 (11 年 以前)
作者:
vboxsync
訊息:

FE/Qt: Settings Dialog: USB page: Validation mechanism: Do not disable USB 2.0 even if its not available.

位置:
trunk/src/VBox/Frontends/VirtualBox/src
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r47957 r48022  
    949949          formatErrorInfo(res),
    950950          "warnAboutUnaccessibleUSB");
    951 }
    952 
    953 void UIMessageCenter::warnAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent /*= 0*/)
    954 {
    955     if (warningShown("warnAboutUnsupportedUSB2"))
    956         return;
    957     setWarningShown("warnAboutUnsupportedUSB2", true);
    958 
    959     alert(pParent, MessageType_Warning,
    960           tr("<p>USB 2.0 is currently enabled for this virtual machine. "
    961              "However, this requires the <b><nobr>%1</nobr></b> to be installed.</p>"
    962              "<p>Please install the Extension Pack from the VirtualBox download site. "
    963              "After this you will be able to re-enable USB 2.0. "
    964              "It will be disabled in the meantime unless you cancel the current settings changes.</p>")
    965              .arg(strExtPackName));
    966 
    967     setWarningShown("warnAboutUnsupportedUSB2", false);
    968951}
    969952
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r47831 r48022  
    220220    /* API: Machine settings warnings: */
    221221    void warnAboutUnaccessibleUSB(const COMBaseWithEI &object, QWidget *pParent = 0) const;
    222     void warnAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent = 0);
    223222    void warnAboutStateChange(QWidget *pParent = 0) const;
    224223    bool confirmSettingsReloading(QWidget *pParent = 0) const;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r47975 r48022  
    330330    usbData.m_fUSBEnabled = mGbUSB->isChecked();
    331331    /* USB 2.0 (EHCI): */
    332     CExtPack extPack = vboxGlobal().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);
    333     usbData.m_fEHCIEnabled = extPack.isNull() || !extPack.GetUsable() ? false : mCbUSB2->isChecked();
     332    usbData.m_fEHCIEnabled = mCbUSB2->isChecked();
    334333
    335334    /* Update USB cache: */
     
    356355        {
    357356            /* Get USB data from cache: */
    358 
    359357            const UIDataSettingsMachineUSB &usbData = m_cache.data();
    360358            /* Store USB data: */
     
    440438        message.second << tr("USB 2.0 is currently enabled for this virtual machine. "
    441439                             "However, this requires the <b>%1</b> to be installed. "
    442                              "Please install the Extension Pack from the VirtualBox download site. "
    443                              "After this you will be able to re-enable USB 2.0. "
    444                              "It will be disabled in the meantime unless you cancel the current settings changes.")
     440                             "Please install the Extension Pack from the VirtualBox download site "
     441                             "or disable USB 2.0 to be able to start the machine.")
    445442                             .arg(GUI_ExtPackName);
    446443        /* Serialize message: */
    447444        if (!message.second.isEmpty())
    448445            messages << message;
    449         /* Show message-center warning: */
    450         msgCenter().warnAboutUnsupportedUSB2(GUI_ExtPackName, this);
    451         /* Disable USB2.0 if enabled: */
    452         mCbUSB2->setChecked(false);
    453446    }
    454447#endif /* VBOX_WITH_EXTPACK */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette