Changeset 108077 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 5, 2025 3:51:45 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167371
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r107599 r108077 788 788 bool UIMessageCenter::confirmSettingsDiscarding(QWidget *pParent /* = 0 */) const 789 789 { 790 return questionBinary(pParent, MessageType_Question, 791 tr("<p>The machine settings were changed.</p>" 792 "<p>Would you like to discard the changed settings or to keep editing them?</p>"), 793 0 /* auto-confirm id */, 794 tr("Discard changes"), tr("Keep editing")); 795 790 if ( warningShown("confirmSettingsDiscarding") 791 || warningShown("confirmSettingsReloading")) 792 return false; 793 setWarningShown("confirmSettingsDiscarding", true); 794 795 const bool fResult = questionBinary(pParent, MessageType_Question, 796 tr("<p>The machine settings were changed.</p>" 797 "<p>Would you like to discard the changed settings or to keep editing them?</p>"), 798 0 /* auto-confirm id */, 799 tr("Discard changes"), tr("Keep editing")); 800 801 setWarningShown("confirmSettingsDiscarding", false); 802 803 return fResult; 796 804 } 797 805 798 806 bool UIMessageCenter::confirmSettingsReloading(QWidget *pParent /* = 0 */) const 799 807 { 800 if (warningShown("confirmSettingsReloading")) 808 if ( warningShown("confirmSettingsReloading") 809 || warningShown("confirmSettingsDiscarding")) 801 810 return false; 802 811 setWarningShown("confirmSettingsReloading", true);
Note:
See TracChangeset
for help on using the changeset viewer.