Changeset 45346 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2013 5:51:15 PM (12 years ago)
- 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 2476 2476 void UIMessageCenter::remindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent) 2477 2477 { 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); 2479 2491 } 2480 2492 … … 2606 2618 } 2607 2619 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 2625 2620 UIMessageCenter::UIMessageCenter() 2626 2621 { … … 2651 2646 connect(this, SIGNAL(sigRemindAboutWrongColorDepth(ulong, ulong)), 2652 2647 this, SLOT(sltRemindAboutWrongColorDepth(ulong, ulong)), Qt::QueuedConnection); 2653 connect(this, SIGNAL(sigRemindAboutUnsupportedUSB2(const QString&, QWidget*)),2654 this, SLOT(sltRemindAboutUnsupportedUSB2(const QString&, QWidget*)), Qt::QueuedConnection);2655 2648 2656 2649 /* Translations for Main. -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r45342 r45346 67 67 /* Notifiers: Synchronization stuff: */ 68 68 void sigRemindAboutWrongColorDepth(ulong uRealBPP, ulong uWantedBPP); 69 void sigRemindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent);70 69 71 70 public: … … 413 412 /* Handlers: Synchronization stuff: */ 414 413 void sltRemindAboutWrongColorDepth(ulong uRealBPP, ulong uWantedBPP); 415 void sltRemindAboutUnsupportedUSB2(const QString &strExtPackName, QWidget *pParent);416 414 417 415 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r45196 r45346 574 574 .arg(GUI_ExtPackName); 575 575 msgCenter().remindAboutUnsupportedUSB2(GUI_ExtPackName, this); 576 mCbUSB2->setChecked(false); 576 577 return true; 577 578 }
Note:
See TracChangeset
for help on using the changeset viewer.