Changeset 8845 in vbox for trunk/src/VBox
- Timestamp:
- May 15, 2008 12:32:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r8784 r8845 1243 1243 e->ignore(); 1244 1244 1245 /* Disable auto closure because we want to have a chance to show the1246 * error dialog on save state / power off failure. */1247 no_auto_close = true;1248 1249 1245 bool success = true; 1250 1246 … … 1299 1295 if (dlg.exec() == QDialog::Accepted) 1300 1296 { 1297 /* Disable auto closure because we want to have a chance to show the 1298 * error dialog on save state / power off failure. */ 1299 no_auto_close = true; 1300 1301 1301 CConsole cconsole = console->console(); 1302 1302 … … 3367 3367 { 3368 3368 #warning "port me" 3369 /* It seems that Qt4 closes all child widgets if the parent widget get 3370 * closed. So nothing to do here than to call close. */ 3371 3372 close(); 3373 3374 /* We have this to test on Windows and Mac or maybe I forgot something, so 3375 * we keep this as a reference: */ 3369 /* First close any open modal & popup widgets. Use a single shot with 3370 * timeout 0 to allow the widgets to cleany close and test then again. If 3371 * all open widgets are closed destroy ourself. */ 3372 QWidget *widget = QApplication::activeModalWidget(); 3373 if (widget) 3374 { 3375 widget->close(); 3376 QTimer::singleShot (0, this, SLOT (tryClose())); 3377 } 3378 else 3379 { 3380 widget = QApplication::activePopupWidget(); 3381 if (widget) 3382 { 3383 widget->close(); 3384 QTimer::singleShot (0, this, SLOT (tryClose())); 3385 } 3386 else 3387 close(); 3388 } 3389 3390 /* We have this to test on Windows or maybe I forgot something, so we keep 3391 * this as a reference: */ 3376 3392 // LogFlowFunc (("eventLoopLevel=%d\n", qApp->eventLoop()->loopLevel())); 3377 3393 //
Note:
See TracChangeset
for help on using the changeset viewer.