Changeset 88678 in vbox
- Timestamp:
- Apr 23, 2021 1:33:28 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r88664 r88678 4658 4658 { 4659 4659 /* First, make sure we don't use COM any more: */ 4660 emit sigAskToDetachCOM(); 4660 4661 m_comHost.detach(); 4661 4662 m_comVBox.detach(); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r88656 r88678 73 73 /** @name Common stuff. 74 74 * @{ */ 75 /** Asks #UIStarter listener to commit data. */76 void sigAskToCommitData();77 /** @} */78 79 /** @name COM stuff.80 * @{ */81 75 /** Asks #UIStarter listener to restart UI. */ 82 76 void sigAskToRestartUI(); … … 86 80 /** Notifies listeners about the VBoxSVC availability change. */ 87 81 void sigVBoxSVCAvailabilityChange(); 82 83 /** Asks listeners to commit data. */ 84 void sigAskToCommitData(); 85 /** Asks listeners to detach COM. */ 86 void sigAskToDetachCOM(); 88 87 /** @} */ 89 88 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r88249 r88678 1007 1007 void UIMachineView::cleanupFrameBuffer() 1008 1008 { 1009 /* Make sure framebuffer assigned at all: */ 1010 if (!m_pFrameBuffer) 1011 return; 1012 1009 1013 /* Make sure proper framebuffer assigned: */ 1010 AssertReturnVoid(m_pFrameBuffer);1011 1014 AssertReturnVoid(m_pFrameBuffer == uisession()->frameBuffer(screenId())); 1012 1015 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r88247 r88678 25 25 #include <QAbstractScrollArea> 26 26 #include <QEventLoop> 27 #include <QPointer> 27 28 28 29 /* GUI includes: */ 29 30 #include "UIExtraDataDefs.h" 31 #include "UIFrameBuffer.h" 30 32 #include "UIMachineDefs.h" 31 33 #ifdef VBOX_WITH_DRAG_AND_DROP … … 52 54 class UIMachineLogic; 53 55 class UIMachineWindow; 54 class UIFrameBuffer;55 56 class UINativeEventFilter; 56 57 class CConsole; … … 356 357 UIMachineWindow *m_pMachineWindow; 357 358 ulong m_uScreenId; 358 UIFrameBuffer *m_pFrameBuffer;359 QPointer<UIFrameBuffer> m_pFrameBuffer; 359 360 KMachineState m_previousState; 360 361 /** HACK: when switching out of fullscreen or seamless we wish to override -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r88648 r88678 589 589 /* Mount medium add-hoc: */ 590 590 mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, strSource); 591 } 592 593 void UISession::sltDetachCOM() 594 { 595 /* Cleanup everything COM related: */ 596 cleanupConsoleEventHandlers(); 597 cleanupFramebuffers(); 598 cleanupSession(); 591 599 } 592 600 … … 1116 1124 { 1117 1125 connect(this, &UISession::sigInitialized, this, &UISession::sltMarkInitialized); 1126 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, this, &UISession::sltDetachCOM); 1118 1127 1119 1128 #ifdef VBOX_WS_MAC … … 1495 1504 saveSessionSettings(); 1496 1505 1497 /* Cleanup framebuffers: */1498 cleanupFramebuffers();1499 1500 /* Cleanup console event-handlers: */1501 cleanupConsoleEventHandlers();1502 1503 1506 /* Cleanup connections: */ 1504 1507 cleanupConnections(); … … 1506 1509 /* Cleanup actions: */ 1507 1510 cleanupActions(); 1508 1509 /* Cleanup session: */1510 cleanupSession();1511 1511 } 1512 1512 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r88633 r88678 365 365 void sltMarkInitialized() { m_fInitialized = true; } 366 366 367 /** Detaches COM. */ 368 void sltDetachCOM(); 367 369 /** Close Runtime UI. */ 368 370 void sltCloseRuntimeUI();
Note:
See TracChangeset
for help on using the changeset viewer.