Changeset 45272 in vbox for trunk/src/VBox
- Timestamp:
- Apr 1, 2013 1:02:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r45271 r45272 1746 1746 /* Lock found machine to session: */ 1747 1747 machine.LockMachine(session, lockType); 1748 if (!machine.isOk()) 1749 { 1750 msgCenter().cannotOpenSession(machine); 1751 session.detach(); 1752 return session; 1753 } 1754 else if (!mVBox.isOk()) 1755 { 1756 msgCenter().cannotOpenSession(mVBox, machine); 1757 session.detach(); 1758 return session; 1759 } 1748 1760 1749 1761 /* Pass the language ID as the property to the guest: */ … … 1756 1768 QLocale lang(VBoxGlobal::languageId()); 1757 1769 startedMachine.SetGuestPropertyValue("/VirtualBox/HostInfo/GUI/LanguageID", lang.name()); 1758 }1759 1760 /* Show locking errors if any: */1761 if (!machine.isOk())1762 {1763 msgCenter().cannotOpenSession(machine);1764 session.detach();1765 }1766 else if (!mVBox.isOk())1767 {1768 msgCenter().cannotOpenSession(mVBox, machine);1769 session.detach();1770 1770 } 1771 1771
Note:
See TracChangeset
for help on using the changeset viewer.