VirtualBox

Ignore:
Timestamp:
Mar 25, 2014 5:19:16 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Medium-mount functionality: Some advanced session acquiring for Selector UI case (fix for r92962).

File:
1 edited

Legend:

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

    r50864 r50869  
    21572157    CMachine machine = constMachine;
    21582158    KSessionState sessionState = machine.GetSessionState();
     2159    /* Session state unlocked? */
    21592160    if (sessionState == KSessionState_Unlocked)
    21602161    {
     2162        /* Open own 'write' session: */
    21612163        session = openSession(machine.GetId());
    21622164        AssertReturnVoid(!session.isNull());
    21632165        machine = session.GetMachine();
    21642166    }
     2167    /* Is it Selector UI call? */
     2168    else if (!isVMConsoleProcess())
     2169    {
     2170        /* Open existing 'shared' session: */
     2171        session = openExistingSession(machine.GetId());
     2172        AssertReturnVoid(!session.isNull());
     2173        machine = session.GetMachine();
     2174    }
     2175    /* Else this is Runtime UI call
     2176     * which has session locked for itself. */
    21652177
    21662178    /* Remount medium to the predefined port/device: */
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