VirtualBox

Changeset 61449 in vbox


Ignore:
Timestamp:
Jun 3, 2016 3:44:09 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107774
Message:

FE/Qt: bugref:7791: Do not forget to close separate UI if started for the 2nd time.

File:
1 edited

Legend:

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

    r61419 r61449  
    48494849    if (   machine.GetSessionState() == KSessionState_Locked /* precondition for CanShowConsoleWindow() */
    48504850        && machine.CanShowConsoleWindow())
    4851         return VBoxGlobal::switchToMachine(machine);
     4851    {
     4852        /* For the Selector UI: */
     4853        if (!isVMConsoleProcess())
     4854        {
     4855            /* Just switch to existing VM window: */
     4856            return VBoxGlobal::switchToMachine(machine);
     4857        }
     4858        /* For the Runtime UI: */
     4859        else
     4860        {
     4861            /* Only separate UI process can reach that place,
     4862             * switch to existing VM window and exit. */
     4863            VBoxGlobal::switchToMachine(machine);
     4864            return false;
     4865        }
     4866    }
    48524867
    48534868    if (enmLaunchMode != LaunchMode_Separate)
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