Changeset 89109 in vbox
- Timestamp:
- May 17, 2021 3:51:48 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144450
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp
r89107 r89109 136 136 UIFileManagerOptions::create(); 137 137 uiCommon().setHelpKeyword(this, "guestadd-gc-file-manager"); 138 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, this, &UIFileManager::sltCleanupListenerAndGuest); 138 139 } 139 140 140 141 UIFileManager::~UIFileManager() 141 142 { 142 if (m_comGuest.isOk() && m_pQtGuestListener && m_comGuestListener.isOk())143 cleanupListener(m_pQtGuestListener, m_comGuestListener, m_comGuest.GetEventSource());144 if (m_comGuestSession.isOk() && m_pQtSessionListener && m_comSessionListener.isOk())145 cleanupListener(m_pQtSessionListener, m_comSessionListener, m_comGuestSession.GetEventSource());146 147 if (m_comGuestSession.isOk())148 m_comGuestSession.Close();149 150 143 saveOptions(); 151 144 UIFileManagerOptions::destroy(); … … 537 530 } 538 531 532 void UIFileManager::sltCleanupListenerAndGuest() 533 { 534 if (m_comGuest.isOk() && m_pQtGuestListener && m_comGuestListener.isOk()) 535 cleanupListener(m_pQtGuestListener, m_comGuestListener, m_comGuest.GetEventSource()); 536 if (m_comGuestSession.isOk() && m_pQtSessionListener && m_comSessionListener.isOk()) 537 cleanupListener(m_pQtSessionListener, m_comSessionListener, m_comGuestSession.GetEventSource()); 538 539 if (m_comGuestSession.isOk()) 540 m_comGuestSession.Close(); 541 } 542 539 543 void UIFileManager::copyToHost() 540 544 { -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h
r89107 r89109 120 120 void sltHandleOptionsUpdated(); 121 121 void sltHandleHidePanel(UIDialogPanel *pPanel); 122 void sltCleanupListenerAndGuest(); 122 123 123 124 private:
Note:
See TracChangeset
for help on using the changeset viewer.