VirtualBox

Changeset 85467 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 27, 2020 12:46:25 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139521
Message:

FE/Qt: bugref:9722: VirtualBox Manager: Allow terminal applications registered via Cloud Console Manager to be used without any profiles.

File:
1 edited

Legend:

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

    r85459 r85467  
    27872787            const QString strApplicationOptions = gEDataManager->cloudConsoleManagerApplication(strApplicationId);
    27882788            const QStringList applicationValues = strApplicationOptions.split(',');
     2789            bool fAtLeastOneProfileListed = false;
    27892790            foreach (const QString strProfileId, gEDataManager->cloudConsoleManagerProfiles(strApplicationId))
    27902791            {
     
    28012802                pAction->setProperty("path", applicationValues.value(1));
    28022803                pAction->setProperty("arguments", profileValues.value(1));
     2804                fAtLeastOneProfileListed = true;
     2805            }
     2806            if (!fAtLeastOneProfileListed)
     2807            {
     2808                QAction *pAction = pMenu->addAction(QApplication::translate("UIActionPool",
     2809                                                                            "Connect with %1",
     2810                                                                            "with terminal application")
     2811                                                        .arg(applicationValues.value(0)),
     2812                                                    this, &UIVirtualBoxManager::sltExecuteExternalApplication);
     2813                pAction->setProperty("path", applicationValues.value(1));
    28032814            }
    28042815        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette