VirtualBox

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


Ignore:
Timestamp:
Oct 28, 2020 11:43:13 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Distinguish cloud profile update from cloud machine update in model registry.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
8 edited

Legend:

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

    r86687 r86734  
    23832383}
    23842384
    2385 bool UIVirtualBoxManager::isCloudUpdateInProgress() const
    2386 {
    2387     return m_pWidget->isCloudUpdateInProgress();
     2385bool UIVirtualBoxManager::isCloudProfileUpdateInProgress() const
     2386{
     2387    return m_pWidget->isCloudProfileUpdateInProgress();
    23882388}
    23892389
     
    31863186        {
    31873187            return !isGroupSavingInProgress() &&
    3188                    (isItemsLocal(items) || !isCloudUpdateInProgress()) &&
     3188                   (isItemsLocal(items) || !isCloudProfileUpdateInProgress()) &&
    31893189                   isAtLeastOneItemRemovable(items);
    31903190        }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h

    r86687 r86734  
    360360        bool isSingleCloudProfileGroupSelected() const;
    361361
    362         /** Returns whether cloud update is in progress. */
    363         bool isCloudUpdateInProgress() const;
     362        /** Returns whether at least one cloud profile currently being updated. */
     363        bool isCloudProfileUpdateInProgress() const;
    364364    /** @} */
    365365
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r86687 r86734  
    117117}
    118118
    119 bool UIVirtualBoxManagerWidget::isCloudUpdateInProgress() const
    120 {
    121     return m_pPaneChooser->isCloudUpdateInProgress();
     119bool UIVirtualBoxManagerWidget::isCloudProfileUpdateInProgress() const
     120{
     121    return m_pPaneChooser->isCloudProfileUpdateInProgress();
    122122}
    123123
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r86687 r86734  
    141141        /** Returns whether group saving is in progress. */
    142142        bool isGroupSavingInProgress() const;
    143         /** Returns whether cloud update is in progress. */
    144         bool isCloudUpdateInProgress() const;
     143        /** Returns whether at least one cloud profile currently being updated. */
     144        bool isCloudProfileUpdateInProgress() const;
    145145
    146146        /** Opens group name editor. */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp

    r86655 r86734  
    4646}
    4747
    48 bool UIChooser::isCloudUpdateInProgress() const
    49 {
    50     AssertPtrReturn(model(), false);
    51     return model()->isCloudUpdateInProgress();
     48bool UIChooser::isCloudProfileUpdateInProgress() const
     49{
     50    AssertPtrReturn(model(), false);
     51    return model()->isCloudProfileUpdateInProgress();
    5252}
    5353
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h

    r86655 r86734  
    113113    /** @name Cloud update stuff.
    114114      * @{ */
    115         /** Returns whether cloud update is in progress. */
    116         bool isCloudUpdateInProgress() const;
     115        /** Returns whether at least one cloud profile currently being updated. */
     116        bool isCloudProfileUpdateInProgress() const;
    117117    /** @} */
    118118
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r86731 r86734  
    646646}
    647647
    648 bool UIChooserAbstractModel::isCloudUpdateInProgress() const
    649 {
    650     return !m_cloudEntityKeysBeingUpdated.isEmpty();
     648bool UIChooserAbstractModel::isCloudProfileUpdateInProgress() const
     649{
     650    /* Compose RE for profile: */
     651    QRegExp re("^/[^/]+/[^/]+$");
     652    /* Check whether keys match profile RE: */
     653    foreach (const UICloudEntityKey &key, m_cloudEntityKeysBeingUpdated)
     654    {
     655        const int iIndex = re.indexIn(key.toString());
     656        if (iIndex != -1)
     657            return true;
     658    }
     659    /* False by default: */
     660    return false;
    651661}
    652662
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r86731 r86734  
    171171        /** Returns whether cloud entity @a key is a part of key set currently being updated. */
    172172        bool containsCloudEntityKey(const UICloudEntityKey &key) const;
    173         /** Returns whether at least one cloud entity update is in progress. */
    174         bool isCloudUpdateInProgress() const;
     173
     174        /** Returns whether at least one cloud profile currently being updated. */
     175        bool isCloudProfileUpdateInProgress() const;
    175176    /** @} */
    176177
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