Changeset 42901 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 21, 2012 11:17:21 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/net
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.cpp
r41461 r42901 92 92 93 93 UINetworkManager::UINetworkManager() 94 : m_pNetworkManagerDialog(0) 95 , m_pNetworkManagerIndicator(0) 94 96 { 95 97 /* Prepare instance: */ … … 110 112 111 113 /* Prepare network-manager state-indicator: */ 112 m_pNetworkManagerIndicator = new UINetworkManagerIndicator; 113 connect(m_pNetworkManagerIndicator, SIGNAL(mouseDoubleClicked(QIStateIndicator *, QMouseEvent *)), this, SLOT(show())); 114 if (!vboxGlobal().isVMConsoleProcess()) 115 { 116 m_pNetworkManagerIndicator = new UINetworkManagerIndicator; 117 connect(m_pNetworkManagerIndicator, SIGNAL(mouseDoubleClicked(QIStateIndicator *, QMouseEvent *)), this, SLOT(show())); 118 } 114 119 } 115 120 … … 120 125 121 126 /* Cleanup network-manager state-indicator: */ 122 delete m_pNetworkManagerIndicator; 127 if (!vboxGlobal().isVMConsoleProcess()) 128 { 129 delete m_pNetworkManagerIndicator; 130 m_pNetworkManagerIndicator = 0; 131 } 123 132 124 133 /* Cleanup network-manager dialog: */ -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequest.cpp
r42526 r42901 74 74 75 75 /* Remove network-request description from network-manager state-indicator: */ 76 m_pNetworkManagerIndicator->removeNetworkRequest(m_uuid); 76 if (m_pNetworkManagerIndicator) 77 m_pNetworkManagerIndicator->removeNetworkRequest(m_uuid); 77 78 78 79 /* Remove network-request widget from network-manager dialog: */ … … 185 186 186 187 /* Create network-request description in network-manager state-indicator: */ 187 m_pNetworkManagerIndicator->addNetworkRequest(this); 188 if (m_pNetworkManagerIndicator) 189 m_pNetworkManagerIndicator->addNetworkRequest(this); 188 190 189 191 /* Choose first network-request as current: */
Note:
See TracChangeset
for help on using the changeset viewer.