Changeset 97514 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 11, 2022 12:46:18 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154537
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r97512 r97514 67 67 #include "UIMouseHandler.h" 68 68 #include "UINotificationCenter.h" 69 #include "UIPopupCenter.h"70 69 #include "UISession.h" 71 70 #include "UISettingsDialogSpecific.h" … … 796 795 m_methods.clear(); 797 796 #endif 798 }799 800 void UIMachineLogic::setMachineWindowsCreated(bool fIsWindowsCreated)801 {802 /* Make sure something changed: */803 if (m_fIsWindowsCreated == fIsWindowsCreated)804 return;805 806 /* Special handling for 'destroyed' case: */807 if (!fIsWindowsCreated)808 {809 /* We ask popup-center to hide corresponding popup-stack *before* the remembering new value810 * because we want UIMachineLogic::activeMachineWindow() to be yet alive. */811 popupCenter().hidePopupStack(activeMachineWindow());812 }813 814 /* Remember new value: */815 m_fIsWindowsCreated = fIsWindowsCreated;816 817 /* Special handling for 'created' case: */818 if (fIsWindowsCreated)819 {820 /* We ask popup-center to show corresponding popup-stack *after* the remembering new value821 * because we want UIMachineLogic::activeMachineWindow() to be already alive. */822 popupCenter().setPopupStackType(activeMachineWindow(),823 visualStateType() == UIVisualStateType_Seamless ?824 UIPopupStackType_Separate : UIPopupStackType_Embedded);825 popupCenter().showPopupStack(activeMachineWindow());826 }827 797 } 828 798 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r97512 r97514 202 202 /* Protected getters/setters: */ 203 203 bool isMachineWindowsCreated() const { return m_fIsWindowsCreated; } 204 void setMachineWindowsCreated(bool fIsWindowsCreated) ;204 void setMachineWindowsCreated(bool fIsWindowsCreated) { m_fIsWindowsCreated = fIsWindowsCreated; } 205 205 206 206 /* Protected members: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r97512 r97514 34 34 #include "UICommon.h" 35 35 #include "UIMessageCenter.h" 36 #include "UIPopupCenter.h"37 36 #include "UISession.h" 38 37 #include "UIActionPoolRuntime.h"
Note:
See TracChangeset
for help on using the changeset viewer.