VirtualBox

Changeset 85551 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 30, 2020 11:39:56 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: VirtualBox Manager: A bit of cleanup for default cloud console connect action on Windows/macOS platforms, disabling on X11 for now, s.a. r139596.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r85529 r85551  
    12781278    const CCloudMachine comMachine = pCloudItem->machine();
    12791279
    1280 #if defined(VBOX_WS_WIN)
    1281     /* Gather arguments: */
    1282     QStringList arguments;
    1283     arguments << strArguments;
    1284     arguments << comMachine.GetSerialConsoleCommandWindows();
    1285 
    1286     /* Execute console application finally: */
    1287     QProcess::startDetached(QString("%1 %2").arg(strPath, arguments.join(' ')));
    1288 #elif defined(VBOX_WS_MAC)
     1280#if defined(VBOX_WS_MAC)
    12891281    /* Gather arguments: */
    12901282    QStringList arguments;
     
    13131305    /* Execute console application finally: */
    13141306    QProcess::startDetached(strPath, arguments);
    1315 #else /* !VBOX_WS_WIN && !VBOX_WS_MAC */
     1307#elif defined(VBOX_WS_WIN)
     1308    /* Gather arguments: */
     1309    QStringList arguments;
     1310    arguments << strArguments;
     1311    arguments << comMachine.GetSerialConsoleCommandWindows();
     1312
     1313    /* Execute console application finally: */
     1314    QProcess::startDetached(QString("%1 %2").arg(strPath, arguments.join(' ')));
     1315#elif defined(VBOX_WS_X11)
    13161316    /* Gather arguments: */
    13171317    QStringList arguments;
     
    13211321    /* Execute console application finally: */
    13221322    QProcess::startDetached(strPath, arguments);
    1323 #endif /* !VBOX_WS_WIN && !VBOX_WS_MAC */
     1323#endif /* VBOX_WS_X11 */
    13241324}
    13251325
     
    28082808        pMenu->addSeparator();
    28092809
     2810#if defined(VBOX_WS_MAC)
    28102811        /* Default Connect action: */
    28112812        QAction *pDefaultAction = pMenu->addAction(QApplication::translate("UIActionPool", "Connect", "to cloud VM"),
    28122813                                                   this, &UIVirtualBoxManager::sltExecuteExternalApplication);
    2813 #if defined(VBOX_WS_MAC)
    28142814        pDefaultAction->setProperty("path", "open");
    28152815#elif defined(VBOX_WS_WIN)
     2816        /* Default Connect action: */
     2817        QAction *pDefaultAction = pMenu->addAction(QApplication::translate("UIActionPool", "Connect", "to cloud VM"),
     2818                                                   this, &UIVirtualBoxManager::sltExecuteExternalApplication);
    28162819        pDefaultAction->setProperty("path", "powershell");
    28172820#elif defined(VBOX_WS_X11)
    2818         Q_UNUSED(pDefaultAction);
     2821        /// @todo invent something?
    28192822#endif
    28202823
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