Changeset 38900 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 29, 2011 11:57:37 AM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.cpp
r38575 r38900 48 48 const char* VBoxDefs::GUI_LastCloseAction = "GUI/LastCloseAction"; 49 49 const char* VBoxDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions"; 50 const char* VBoxDefs::GUI_CloseActionHook = "GUI/CloseActionHook"; 50 51 const char* VBoxDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; 51 52 const char* VBoxDefs::GUI_PermanentSharedFoldersAtRuntime = "GUI/PermanentSharedFoldersAtRuntime"; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxDefs.h
r38575 r38900 128 128 static const char* GUI_LastCloseAction; 129 129 static const char* GUI_RestrictedCloseActions; 130 static const char* GUI_CloseActionHook; 130 131 static const char* GUI_SuppressMessages; 131 132 static const char* GUI_PermanentSharedFoldersAtRuntime; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r38348 r38900 198 198 CMachine machine = session().GetMachine(); 199 199 200 /* Check if there is a close hock script defined. */ 201 const QString& strScript = machine.GetExtraData(VBoxDefs::GUI_CloseActionHook); 202 if (!strScript.isEmpty()) 203 { 204 QProcess::startDetached(strScript, QStringList() << machine.GetId()); 205 return; 206 } 200 207 /* Prepare close dialog: */ 201 208 UIVMCloseDialog dlg(machineWindow());
Note:
See TracChangeset
for help on using the changeset viewer.