Changeset 60631 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 21, 2016 3:43:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r60362 r60631 131 131 m_cHostScreenCount = cHostScreenCount != -1 ? cHostScreenCount : m_pDesktopWidget->screenCount(); 132 132 133 /* Resize vectors to new host-screen count: */ 133 /* Cleanup existing workers first: */ 134 foreach (QWidget *pWorker, m_availableGeometryWorkers) 135 pWorker->disconnect(); 134 136 qDeleteAll(m_availableGeometryWorkers); 135 137 m_availableGeometryWorkers.clear(); 138 m_availableGeometryData.clear(); 139 140 /* Resize workers vectors to new host-screen count: */ 136 141 m_availableGeometryWorkers.resize(m_cHostScreenCount); 137 m_availableGeometryData.clear();138 142 m_availableGeometryData.resize(m_cHostScreenCount); 139 143 … … 203 207 disconnect(m_pDesktopWidget, SIGNAL(resized(int)), this, SLOT(sltRecalculateHostScreenAvailableGeometry(int))); 204 208 205 /* Cleanup existing workers: */ 209 /* Cleanup existing workers finally: */ 210 foreach (QWidget *pWorker, m_availableGeometryWorkers) 211 pWorker->disconnect(); 206 212 qDeleteAll(m_availableGeometryWorkers); 207 213 m_availableGeometryWorkers.clear(); 214 m_availableGeometryData.clear(); 208 215 } 209 216
Note:
See TracChangeset
for help on using the changeset viewer.