VirtualBox

Changeset 2055 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2007 4:28:13 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Fixed a debug assertion when a global GUI configuration key had an invalid value in the settings file.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r2045 r2055  
    639639#endif
    640640
     641    Assert (valid);
     642
    641643    if (!selector_wnd)
    642644    {
     
    668670#endif
    669671
    670     if ( !console_wnd )
     672    Assert (valid);
     673
     674    if (!console_wnd)
    671675    {
    672676        /*
     
    13071311bool VBoxGlobal::startMachine (const QUuid &id)
    13081312{
    1309     Assert (valid);
    1310     if (!valid)
    1311         return false;
     1313    AssertReturn (valid, false);
    13121314
    13131315    CSession session;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r2044 r2055  
    414414QWidget *VBoxProblemReporter::mainWindowShown()
    415415{
     416    /* It may happen that this method is called during VBoxGlobal
     417     * initialization or even after it failed (for example, to show some
     418     * error message). Return no main window in this case. */
     419    if (!vboxGlobal().isValid())
     420        return 0;
     421
    416422#if defined (VBOX_GUI_SEPARATE_VM_PROCESS)
    417423    if (vboxGlobal().isVMConsoleProcess())
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette