- Timestamp:
- Feb 1, 2023 2:46:54 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98386 r98398 615 615 if (!UISession::create(m_pSession, this)) 616 616 return false; 617 618 /* Make sure session UI created: */ 619 AssertReturn(m_pSession, false); 617 AssertPtrReturn(m_pSession, false); 620 618 621 619 /* Cache media data early if necessary: */ … … 626 624 prepareSessionConnections(); 627 625 prepareScreens(); 628 prepare MachineWindowIcon();626 prepareBranding(); 629 627 prepareMachineLogic(); 630 631 /* Load settings: */632 loadSettings();633 628 634 629 /* Try to initialize session UI: */ … … 787 782 } 788 783 789 void UIMachine::prepare MachineWindowIcon()784 void UIMachine::prepareBranding() 790 785 { 791 786 /* Acquire user machine-window icon: */ … … 799 794 /* Store the icon dynamically: */ 800 795 m_pMachineWindowIcon = new QIcon(icon); 796 797 #ifndef VBOX_WS_MAC 798 /* Load user's machine-window name postfix: */ 799 const QUuid uMachineID = uiCommon().managedVMUuid(); 800 m_strMachineWindowNamePostfix = gEDataManager->machineWindowNamePostfix(uMachineID); 801 #endif /* !VBOX_WS_MAC */ 801 802 } 802 803 … … 843 844 } 844 845 845 void UIMachine::loadSettings() 846 { 847 /* Load extra-data settings: */ 848 { 849 /* Get machine ID: */ 850 const QUuid uMachineID = uiCommon().managedVMUuid(); 851 Q_UNUSED(uMachineID); 852 853 #ifndef VBOX_WS_MAC 854 /* Load user's machine-window name postfix: */ 855 m_strMachineWindowNamePostfix = gEDataManager->machineWindowNamePostfix(uMachineID); 856 #endif 857 } 858 } 859 860 void UIMachine::cleanupMachineWindowIcon() 846 void UIMachine::cleanupBranding() 861 847 { 862 848 /* Cleanup machine-window icon: */ … … 887 873 /* Cleanup stuff: */ 888 874 cleanupMachineLogic(); 889 cleanup MachineWindowIcon();875 cleanupBranding(); 890 876 cleanupScreens(); 891 877 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98386 r98398 44 44 #include "COMEnums.h" 45 45 #include "CMediumAttachment.h" 46 #include "CNetworkAdapter.h"47 #include "CUSBDevice.h"48 46 49 47 /* Forward declarations: */ … … 372 370 /** Prepare routine: Screens stuff. */ 373 371 void prepareScreens(); 374 /** Prepare routine: Machine-window icon. */375 void prepare MachineWindowIcon();372 /** Prepare routine: Branding. */ 373 void prepareBranding(); 376 374 /** Prepare routine: Machine-logic stuff. */ 377 375 void prepareMachineLogic(); 378 376 379 /** Performs settings loading. */380 void loadSettings();381 382 377 /** Cleanup routine: Machine-logic stuff. */ 383 378 void cleanupMachineLogic(); 384 /** Cleanup routine: Machine-window icon. */385 void cleanup MachineWindowIcon();379 /** Cleanup routine: Branding. */ 380 void cleanupBranding(); 386 381 /** Cleanup routine: Screens stuff. */ 387 382 void cleanupScreens(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98386 r98398 89 89 bool UISession::create(UISession *&pSession, UIMachine *pMachine) 90 90 { 91 /* Make sure nullpointer passed: */92 AssertReturn( pSession == 0, false);91 /* Make sure NULL pointer passed: */ 92 AssertReturn(!pSession, false); 93 93 94 94 /* Create session UI: */ 95 95 pSession = new UISession(pMachine); 96 AssertPtrReturn(pSession, false); 97 96 98 /* Make sure it's prepared: */ 97 99 if (!pSession->prepare()) … … 102 104 return false; 103 105 } 106 104 107 /* True by default: */ 105 108 return true; … … 110 113 { 111 114 /* Make sure valid pointer passed: */ 112 AssertReturnVoid(pSession != 0); 113 114 /* Cleanup session UI: */ 115 pSession->cleanup(); 116 /* Destroy session: */ 115 AssertPtrReturnVoid(pSession); 116 117 /* Delete session: */ 117 118 delete pSession; 118 119 pSession = 0;
Note:
See TracChangeset
for help on using the changeset viewer.