- Timestamp:
- May 31, 2010 6:37:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r29824 r29926 102 102 UIMachineWindow::~UIMachineWindow() 103 103 { 104 /* Close any opened modal & popup widgets: */ 105 while (QWidget *pWidget = QApplication::activeModalWidget() ? QApplication::activeModalWidget() : 106 QApplication::activePopupWidget() ? QApplication::activePopupWidget() : 0) 107 { 108 /* Set modal/popup window's parent to null early, 109 * because deleteLater() is synchronous 110 * and will be called later than this destructor: */ 111 pWidget->setParent(0); 112 /* Close modal/popup window early to hide it 113 * because deleteLater() is synchronous 114 * and will be called later than this destructor: */ 115 pWidget->close(); 116 /* Delete modal/popup window synchronously (safe): */ 117 pWidget->deleteLater(); 118 } 104 119 } 105 120
Note:
See TracChangeset
for help on using the changeset viewer.