Changeset 18006 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 17, 2009 10:07:44 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r17884 r18006 201 201 202 202 void cannotSetSnapshotFolder (const CMachine &aMachine, const QString &aPath); 203 bool askAboutSnapshotAndStateDiscarding(); 203 204 void cannotDiscardSnapshot (const CConsole &aConsole, 204 205 const QString &aSnapshotName); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r17884 r18006 889 889 } 890 890 891 bool VBoxProblemReporter::askAboutSnapshotAndStateDiscarding() 892 { 893 return messageOkCancel (mainWindowShown(), Question, 894 tr ("<p>Are you sure you wish to delete the selected snapshot " 895 "and saved state?</p>"), 896 "confirmSnapshotAndStateDiscarding" /* aAutoConfirmId */, 897 tr ("Discard"), tr ("Cancel")); 898 } 899 891 900 void VBoxProblemReporter::cannotDiscardSnapshot (const CConsole &aConsole, 892 901 const QString &aSnapshotName) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotsWgt.cpp
r17260 r18006 567 567 void VBoxSnapshotsWgt::discardCurSnapAndState() 568 568 { 569 if (!vboxProblem().askAboutSnapshotAndStateDiscarding()) 570 return; 571 569 572 SnapshotWgtItem *item = mTreeWidget->selectedItems().isEmpty() ? 0 : 570 573 static_cast<SnapshotWgtItem*> (mTreeWidget->selectedItems() [0]);
Note:
See TracChangeset
for help on using the changeset viewer.