VirtualBox

Changeset 45329 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2013 9:00:44 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: VM selector: Multi-target ACPI shutdown signal processing cleanup/rework.

File:
1 edited

Legend:

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

    r45328 r45329  
    18051805bool UISelectorWindow::isAtLeastOneItemAbleToShutdown(const QList<UIVMItem*> &items)
    18061806{
     1807    /* Enumerate all the passed items: */
    18071808    foreach (UIVMItem *pItem, items)
    18081809    {
     1810        /* Skip non-running machines: */
    18091811        if (!UIVMItem::isItemRunning(pItem))
    18101812            continue;
    1811 
     1813        /* Skip session failures: */
    18121814        CSession session = vboxGlobal().openExistingSession(pItem->id());
    18131815        if (session.isNull())
    1814             return false;
     1816            continue;
     1817        /* Skip console failures: */
    18151818        CConsole console = session.GetConsole();
    18161819        if (console.isNull())
    18171820        {
     1821            /* Do not forget to release machine: */
    18181822            session.UnlockMachine();
    1819             return false;
    1820         }
     1823            continue;
     1824        }
     1825        /* Is the guest entered ACPI mode? */
     1826        bool fGuestEnteredACPIMode = console.GetGuestEnteredACPIMode();
     1827        /* Do not forget to release machine: */
    18211828        session.UnlockMachine();
    1822 
    1823         return console.GetGuestEnteredACPIMode();
    1824     }
     1829        /* True if the guest entered ACPI mode: */
     1830        if (fGuestEnteredACPIMode)
     1831            return true;
     1832    }
     1833    /* False by default: */
    18251834    return false;
    18261835}
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