Changeset 67543 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 21, 2017 2:25:46 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116286
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp
r67540 r67543 1090 1090 restoreSnapshot(true /* suppress non-critical warnings */); 1091 1091 } 1092 /* Handle Ctrl+Shift+DoubleClick: */ 1093 else if (QApplication::keyboardModifiers() == (Qt::KeyboardModifiers)(Qt::ControlModifier | Qt::ShiftModifier)) 1094 { 1095 /* As snapshot-delete procedure: */ 1096 if (!pSnapshotItem->isCurrentStateItem()) 1097 deleteSnapshot(true /* automatically */); 1098 } 1092 1099 /* Handle other kinds of DoubleClick: */ 1093 1100 else … … 1564 1571 } 1565 1572 1566 bool UISnapshotPane::deleteSnapshot( )1573 bool UISnapshotPane::deleteSnapshot(bool fAutomatically /* = false */) 1567 1574 { 1568 1575 /* Simulate try-catch block: */ … … 1583 1590 1584 1591 /* Ask if user really wants to remove the selected snapshot: */ 1585 if (! msgCenter().confirmSnapshotRemoval(comSnapshot.GetName()))1592 if (!fAutomatically && !msgCenter().confirmSnapshotRemoval(comSnapshot.GetName())) 1586 1593 break; 1587 1594 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.h
r67540 r67543 169 169 bool takeSnapshot(bool fAutomatically = false); 170 170 /** Proposes to delete the snapshot. */ 171 bool deleteSnapshot( );171 bool deleteSnapshot(bool fAutomatically = false); 172 172 /** Proposes to restore the snapshot. */ 173 173 bool restoreSnapshot(bool fSuppressNonCriticalWarnings = false);
Note:
See TracChangeset
for help on using the changeset viewer.