Changeset 90889 in vbox for trunk/src/VBox
- Timestamp:
- Aug 25, 2021 4:40:01 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r90888 r90889 385 385 } 386 386 #endif /* VBOX_WS_MAC */ 387 388 void UIMachineLogic::detach()389 {390 /* Enable 'manual-override',391 * preventing automatic Runtime UI closing: */392 uisession()->setManualOverrideMode(true);393 394 /* Was the step successful? */395 bool fSuccess = true;396 LogRel(("GUI: Passing request to detach UI from machine-logic to UI session.\n"));397 fSuccess = uisession()->detach();398 399 /* Manually close Runtime UI: */400 if (fSuccess)401 uisession()->closeRuntimeUI();402 }403 387 404 388 void UIMachineLogic::shutdown() … … 1871 1855 1872 1856 LogRel(("GUI: User requested to detach GUI.\n")); 1873 detach();1857 uisession()->detachUi(); 1874 1858 } 1875 1859 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r90888 r90889 143 143 #endif /* VBOX_WS_MAC */ 144 144 145 /** Detach and close Runtime UI. */146 void detach();147 145 /** Call for guest shutdown to close Runtime UI. */ 148 146 void shutdown(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r90888 r90889 448 448 /* Detach GUI: */ 449 449 LogRel(("GUI: Request for close-action to detach GUI.\n")); 450 machineLogic()->detach();450 uisession()->detachUi(); 451 451 break; 452 452 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r90888 r90889 320 320 } 321 321 322 bool UISession::detach() 323 { 324 /* Nothing here for now: */ 325 return true; 322 void UISession::detachUi() 323 { 324 /* Enable 'manual-override', 325 * preventing automatic Runtime UI closing: */ 326 setManualOverrideMode(true); 327 328 /* Manually close Runtime UI: */ 329 LogRel(("GUI: Detaching UI..\n")); 330 closeRuntimeUI(); 326 331 } 327 332 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r90888 r90889 78 78 bool powerUp(); 79 79 /** Detaches and closes Runtime UI. */ 80 bool detach();80 void detachUi(); 81 81 /** Saves VM state, then closes Runtime UI. */ 82 82 void saveState();
Note:
See TracChangeset
for help on using the changeset viewer.