VirtualBox

Changeset 38467 in vbox


Ignore:
Timestamp:
Aug 16, 2011 9:08:54 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73518
Message:

FE/Qt4: allows starting a VM headless by pressing SHIFT

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r38421 r38467  
    56675667}
    56685668
    5669 bool VBoxGlobal::launchMachine(CMachine &machine)
     5669bool VBoxGlobal::launchMachine(CMachine &machine, bool fHeadless /* = false */)
    56705670{
    56715671    if (machine.CanShowConsoleWindow())
     
    57035703        env.append(QString("XAUTHORITY=%1\n").arg(xauth));
    57045704#endif
    5705 
    5706     CProgress progress = machine.LaunchVMProcess(session, "GUI/Qt", env);
     5705    const QString strType = fHeadless ? "headless" : "GUI/Qt";
     5706
     5707    CProgress progress = machine.LaunchVMProcess(session, strType, env);
    57075708    if (   !vbox.isOk()
    57085709        || progress.isNull())
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r38324 r38467  
    159159
    160160    bool switchToMachine(CMachine &machine);
    161     bool launchMachine(CMachine &machine);
     161    bool launchMachine(CMachine &machine, bool fHeadless = false);
    162162
    163163    bool isVMConsoleProcess() const { return !vmUuid.isNull(); }
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp

    r38372 r38467  
    830830
    831831    CMachine machine = item->machine();
    832     vboxGlobal().launchMachine(machine);
     832    vboxGlobal().launchMachine(machine, qApp->keyboardModifiers() == Qt::ShiftModifier);
    833833}
    834834
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