Changeset 86734 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 28, 2020 11:43:13 AM (4 years ago)
- 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 2383 2383 } 2384 2384 2385 bool UIVirtualBoxManager::isCloud UpdateInProgress() const2386 { 2387 return m_pWidget->isCloud UpdateInProgress();2385 bool UIVirtualBoxManager::isCloudProfileUpdateInProgress() const 2386 { 2387 return m_pWidget->isCloudProfileUpdateInProgress(); 2388 2388 } 2389 2389 … … 3186 3186 { 3187 3187 return !isGroupSavingInProgress() && 3188 (isItemsLocal(items) || !isCloud UpdateInProgress()) &&3188 (isItemsLocal(items) || !isCloudProfileUpdateInProgress()) && 3189 3189 isAtLeastOneItemRemovable(items); 3190 3190 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r86687 r86734 360 360 bool isSingleCloudProfileGroupSelected() const; 361 361 362 /** Returns whether cloud update is in progress. */363 bool isCloud UpdateInProgress() const;362 /** Returns whether at least one cloud profile currently being updated. */ 363 bool isCloudProfileUpdateInProgress() const; 364 364 /** @} */ 365 365 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r86687 r86734 117 117 } 118 118 119 bool UIVirtualBoxManagerWidget::isCloud UpdateInProgress() const120 { 121 return m_pPaneChooser->isCloud UpdateInProgress();119 bool UIVirtualBoxManagerWidget::isCloudProfileUpdateInProgress() const 120 { 121 return m_pPaneChooser->isCloudProfileUpdateInProgress(); 122 122 } 123 123 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r86687 r86734 141 141 /** Returns whether group saving is in progress. */ 142 142 bool isGroupSavingInProgress() const; 143 /** Returns whether cloud update is in progress. */144 bool isCloud UpdateInProgress() const;143 /** Returns whether at least one cloud profile currently being updated. */ 144 bool isCloudProfileUpdateInProgress() const; 145 145 146 146 /** Opens group name editor. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r86655 r86734 46 46 } 47 47 48 bool UIChooser::isCloud UpdateInProgress() const49 { 50 AssertPtrReturn(model(), false); 51 return model()->isCloud UpdateInProgress();48 bool UIChooser::isCloudProfileUpdateInProgress() const 49 { 50 AssertPtrReturn(model(), false); 51 return model()->isCloudProfileUpdateInProgress(); 52 52 } 53 53 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r86655 r86734 113 113 /** @name Cloud update stuff. 114 114 * @{ */ 115 /** Returns whether cloud update is in progress. */116 bool isCloud UpdateInProgress() const;115 /** Returns whether at least one cloud profile currently being updated. */ 116 bool isCloudProfileUpdateInProgress() const; 117 117 /** @} */ 118 118 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86731 r86734 646 646 } 647 647 648 bool UIChooserAbstractModel::isCloudUpdateInProgress() const 649 { 650 return !m_cloudEntityKeysBeingUpdated.isEmpty(); 648 bool 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; 651 661 } 652 662 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86731 r86734 171 171 /** Returns whether cloud entity @a key is a part of key set currently being updated. */ 172 172 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; 175 176 /** @} */ 176 177
Note:
See TracChangeset
for help on using the changeset viewer.