VirtualBox

Changeset 54629 in vbox


Ignore:
Timestamp:
Mar 4, 2015 4:17:42 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Before calling IMachine::CanShowConsoleWindow() check the session state first. This prevents an annoying E_INVALID_VM_STATE message in the VBoxSVC.log file.

File:
1 edited

Legend:

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

    r54627 r54629  
    45544554    {
    45554555        /* Switch to machine window(s) if possible: */
    4556         if (machine.CanShowConsoleWindow())
     4556        if (   machine.GetSessionState() == KSessionState_Locked /* precondition for CanShowConsoleWindow() */
     4557            && machine.CanShowConsoleWindow())
    45574558            return VBoxGlobal::switchToMachine(machine);
    45584559
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