儲存庫 vbox 的更動 48022
- 時間撮記:
- 2013-8-23 下午12:04:01 (11 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r47957 r48022 949 949 formatErrorInfo(res), 950 950 "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);968 951 } 969 952 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r47831 r48022 220 220 /* API: Machine settings warnings: */ 221 221 void warnAboutUnaccessibleUSB(const COMBaseWithEI &object, QWidget *pParent = 0) const; 222 void warnAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent = 0);223 222 void warnAboutStateChange(QWidget *pParent = 0) const; 224 223 bool confirmSettingsReloading(QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r47975 r48022 330 330 usbData.m_fUSBEnabled = mGbUSB->isChecked(); 331 331 /* 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(); 334 333 335 334 /* Update USB cache: */ … … 356 355 { 357 356 /* Get USB data from cache: */ 358 359 357 const UIDataSettingsMachineUSB &usbData = m_cache.data(); 360 358 /* Store USB data: */ … … 440 438 message.second << tr("USB 2.0 is currently enabled for this virtual machine. " 441 439 "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.") 445 442 .arg(GUI_ExtPackName); 446 443 /* Serialize message: */ 447 444 if (!message.second.isEmpty()) 448 445 messages << message; 449 /* Show message-center warning: */450 msgCenter().warnAboutUnsupportedUSB2(GUI_ExtPackName, this);451 /* Disable USB2.0 if enabled: */452 mCbUSB2->setChecked(false);453 446 } 454 447 #endif /* VBOX_WITH_EXTPACK */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器