Changeset 27462 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 17, 2010 8:31:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r27374 r27462 25 25 #include <QApplication> 26 26 #include <QWidget> 27 #include <QTimer> 27 28 28 29 /* Local includes */ … … 604 605 console.PowerUpPaused() : console.PowerUp(); 605 606 606 #if 0 // TODO: Check immediate failure! 607 /* Check for an immediate failure: */ 607 /* Check for immediate failure: */ 608 608 if (!console.isOk()) 609 609 { 610 vboxProblem().cannotStartMachine(console); 611 machineWindowWrapper()->machineWindow()->close(); 610 if (vboxGlobal().showStartVMErrors()) 611 vboxProblem().cannotStartMachine(console); 612 QTimer::singleShot(0, this, SLOT(sltCloseVirtualSession())); 612 613 return; 613 614 } 614 615 /* Disable auto-closure because we want to have a chance to show the error dialog on startup failure: */616 setPreventAutoClose(true);617 #endif618 615 619 616 /* Show "Starting/Restoring" progress dialog: */ … … 623 620 vboxProblem().showModalProgressDialog(progress, machine.GetName(), mainMachineWindow()); 624 621 625 #if 0 // TODO: Check immediate failure! 626 /* Check for an progress failure */ 622 /* Check for a progress failure: */ 627 623 if (progress.GetResultCode() != 0) 628 624 { 629 vboxProblem().cannotStartMachine(progress); 630 machineWindowWrapper()->machineWindow()->close(); 625 if (vboxGlobal().showStartVMErrors()) 626 vboxProblem().cannotStartMachine(progress); 627 QTimer::singleShot(0, this, SLOT(sltCloseVirtualSession())); 631 628 return; 632 629 } 633 630 634 /* Enable auto-closure again: */635 setPreventAutoClose(false);636 637 631 /* Check if we missed a really quick termination after successful startup, and process it if we did: */ 638 if ( uisession()->isTurnedOff())639 { 640 machineWindowWrapper()->machineWindow()->close();632 if (isTurnedOff()) 633 { 634 QTimer::singleShot(0, this, SLOT(sltCloseVirtualSession())); 641 635 return; 642 636 } 643 #endif644 637 645 638 #if 0 // TODO: Rework debugger logic!
Note:
See TracChangeset
for help on using the changeset viewer.