- Timestamp:
- Apr 4, 2013 9:00:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r45328 r45329 1805 1805 bool UISelectorWindow::isAtLeastOneItemAbleToShutdown(const QList<UIVMItem*> &items) 1806 1806 { 1807 /* Enumerate all the passed items: */ 1807 1808 foreach (UIVMItem *pItem, items) 1808 1809 { 1810 /* Skip non-running machines: */ 1809 1811 if (!UIVMItem::isItemRunning(pItem)) 1810 1812 continue; 1811 1813 /* Skip session failures: */ 1812 1814 CSession session = vboxGlobal().openExistingSession(pItem->id()); 1813 1815 if (session.isNull()) 1814 return false; 1816 continue; 1817 /* Skip console failures: */ 1815 1818 CConsole console = session.GetConsole(); 1816 1819 if (console.isNull()) 1817 1820 { 1821 /* Do not forget to release machine: */ 1818 1822 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: */ 1821 1828 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: */ 1825 1834 return false; 1826 1835 }
Note:
See TracChangeset
for help on using the changeset viewer.