VirtualBox

Changeset 27242 in vbox


Ignore:
Timestamp:
Mar 10, 2010 11:30:34 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: New running VM core: problem reporter (main window shown) now supports situations when main window is not initialized yet.

File:
1 edited

Legend:

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

    r27096 r27242  
    277277    if (vboxGlobal().isVMConsoleProcess())
    278278    {
    279         if (vboxGlobal().vmWindow()->isVisible()) /* VM window is visible */
     279        if (vboxGlobal().vmWindow() && vboxGlobal().vmWindow()->isVisible()) /* VM window is visible */
    280280            return vboxGlobal().vmWindow(); /* return that window */
    281281    }
    282282    else
    283283    {
    284         if (vboxGlobal().selectorWnd().isVisible()) /* VM selector is visible */
     284        if (vboxGlobal().vmWindow() && vboxGlobal().selectorWnd().isVisible()) /* VM selector is visible */
    285285            return &vboxGlobal().selectorWnd(); /* return that window */
    286286    }
    287287#else
    288     if (vboxGlobal().vmWindow().isVisible()) /* VM window is visible */
     288    if (vboxGlobal().vmWindow() && vboxGlobal().vmWindow().isVisible()) /* VM window is visible */
    289289        return &vboxGlobal().vmWindow(); /* return that window */
    290     if (vboxGlobal().selectorWnd().isVisible()) /* VM selector is visible */
     290    if (vboxGlobal().vmWindow() && vboxGlobal().selectorWnd().isVisible()) /* VM selector is visible */
    291291        return &vboxGlobal().selectorWnd(); /* return that window */
    292292#endif
     
    306306        return 0;
    307307
    308     if (vboxGlobal().vmWindow()->isVisible()) /* VM window is visible */
     308    if (vboxGlobal().vmWindow() && vboxGlobal().vmWindow()->isVisible()) /* VM window is visible */
    309309        return vboxGlobal().vmWindow(); /* return that window */
    310310
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