Changeset 85551 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 30, 2020 11:39:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r85529 r85551 1278 1278 const CCloudMachine comMachine = pCloudItem->machine(); 1279 1279 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) 1289 1281 /* Gather arguments: */ 1290 1282 QStringList arguments; … … 1313 1305 /* Execute console application finally: */ 1314 1306 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) 1316 1316 /* Gather arguments: */ 1317 1317 QStringList arguments; … … 1321 1321 /* Execute console application finally: */ 1322 1322 QProcess::startDetached(strPath, arguments); 1323 #endif /* !VBOX_WS_WIN && !VBOX_WS_MAC*/1323 #endif /* VBOX_WS_X11 */ 1324 1324 } 1325 1325 … … 2808 2808 pMenu->addSeparator(); 2809 2809 2810 #if defined(VBOX_WS_MAC) 2810 2811 /* Default Connect action: */ 2811 2812 QAction *pDefaultAction = pMenu->addAction(QApplication::translate("UIActionPool", "Connect", "to cloud VM"), 2812 2813 this, &UIVirtualBoxManager::sltExecuteExternalApplication); 2813 #if defined(VBOX_WS_MAC)2814 2814 pDefaultAction->setProperty("path", "open"); 2815 2815 #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); 2816 2819 pDefaultAction->setProperty("path", "powershell"); 2817 2820 #elif defined(VBOX_WS_X11) 2818 Q_UNUSED(pDefaultAction);2821 /// @todo invent something? 2819 2822 #endif 2820 2823
Note:
See TracChangeset
for help on using the changeset viewer.