Changeset 57129 in vbox
- Timestamp:
- Jul 30, 2015 12:57:20 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101867
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r56443 r57129 444 444 void UIMachineWindow::prepareSessionConnections() 445 445 { 446 /* Machine state-change updater: */446 /* We should watch for console events: */ 447 447 connect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged())); 448 448 } … … 523 523 UIMachineView::destroy(m_pMachineView); 524 524 m_pMachineView = 0; 525 } 526 527 void UIMachineWindow::cleanupSessionConnections() 528 { 529 /* We should stop watching for console events: */ 530 disconnect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged())); 525 531 } 526 532 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r57102 r57129 148 148 virtual void cleanupMenu() {} 149 149 virtual void cleanupMainLayout() {} 150 virtual void cleanupSessionConnections() {}150 virtual void cleanupSessionConnections(); 151 151 152 152 /* Update stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r54299 r57129 214 214 UIMachineWindow::prepareSessionConnections(); 215 215 216 /* Medium change updater: */216 /* We should watch for console events: */ 217 217 connect(machineLogic()->uisession(), SIGNAL(sigMediumChange(const CMediumAttachment &)), 218 218 this, SLOT(sltMediumChange(const CMediumAttachment &))); 219 220 /* USB controller change updater: */221 219 connect(machineLogic()->uisession(), SIGNAL(sigUSBControllerChange()), 222 220 this, SLOT(sltUSBControllerChange())); 223 224 /* USB device state-change updater: */225 221 connect(machineLogic()->uisession(), SIGNAL(sigUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &)), 226 222 this, SLOT(sltUSBDeviceStateChange())); 227 228 /* Network adapter change updater: */229 223 connect(machineLogic()->uisession(), SIGNAL(sigNetworkAdapterChange(const CNetworkAdapter &)), 230 224 this, SLOT(sltNetworkAdapterChange())); 231 232 /* Shared folder change updater: */233 225 connect(machineLogic()->uisession(), SIGNAL(sigSharedFolderChange()), 234 226 this, SLOT(sltSharedFolderChange())); 235 236 /* Video capture change updater: */237 227 connect(machineLogic()->uisession(), SIGNAL(sigVideoCaptureChange()), 238 228 this, SLOT(sltVideoCaptureChange())); 239 240 /* CPU execution cap change updater: */241 229 connect(machineLogic()->uisession(), SIGNAL(sigCPUExecutionCapChange()), 242 230 this, SLOT(sltCPUExecutionCapChange())); … … 402 390 /* Call to base-class: */ 403 391 UIMachineWindow::saveSettings(); 392 } 393 394 void UIMachineWindowNormal::cleanupSessionConnections() 395 { 396 /* We should stop watching for console events: */ 397 disconnect(machineLogic()->uisession(), SIGNAL(sigMediumChange(const CMediumAttachment &)), 398 this, SLOT(sltMediumChange(const CMediumAttachment &))); 399 disconnect(machineLogic()->uisession(), SIGNAL(sigUSBControllerChange()), 400 this, SLOT(sltUSBControllerChange())); 401 disconnect(machineLogic()->uisession(), SIGNAL(sigUSBDeviceStateChange(const CUSBDevice &, bool, const CVirtualBoxErrorInfo &)), 402 this, SLOT(sltUSBDeviceStateChange())); 403 disconnect(machineLogic()->uisession(), SIGNAL(sigNetworkAdapterChange(const CNetworkAdapter &)), 404 this, SLOT(sltNetworkAdapterChange())); 405 disconnect(machineLogic()->uisession(), SIGNAL(sigSharedFolderChange()), 406 this, SLOT(sltSharedFolderChange())); 407 disconnect(machineLogic()->uisession(), SIGNAL(sigVideoCaptureChange()), 408 this, SLOT(sltVideoCaptureChange())); 409 disconnect(machineLogic()->uisession(), SIGNAL(sigCPUExecutionCapChange()), 410 this, SLOT(sltCPUExecutionCapChange())); 411 412 /* Call to base-class: */ 413 UIMachineWindow::cleanupSessionConnections(); 404 414 } 405 415 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r57027 r57129 97 97 /** Save settings routine. */ 98 98 void saveSettings(); 99 /** Cleanup session connections routine. */ 100 void cleanupSessionConnections(); 99 101 100 102 /** Updates visibility according to visual-state. */
Note:
See TracChangeset
for help on using the changeset viewer.