Changeset 84102 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 30, 2020 1:20:34 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r83963 r84102 2240 2240 { 2241 2241 foreach (UIVirtualMachineItem *pItem, items) 2242 if ( !pItem->accessible() || pItem->isItemEditable())2242 if (pItem->isItemRemovable()) 2243 2243 return true; 2244 2244 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItem.h
r83921 r84102 120 120 /** Returns whether this item is editable. */ 121 121 virtual bool isItemEditable() const = 0; 122 /** Returns whether this item is removable. */ 123 virtual bool isItemRemovable() const = 0; 122 124 /** Returns whether this item is saved. */ 123 125 virtual bool isItemSaved() const = 0; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp
r84087 r84102 175 175 } 176 176 177 bool UIVirtualMachineItemCloud::isItemRemovable() const 178 { 179 return accessible() 180 && itemType() == UIVirtualMachineItemType_CloudReal; 181 } 182 177 183 bool UIVirtualMachineItemCloud::isItemSaved() const 178 184 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.h
r84087 r84102 85 85 /** Returns whether this item is editable. */ 86 86 virtual bool isItemEditable() const /* override */; 87 /** Returns whether this item is removable. */ 88 virtual bool isItemRemovable() const /* override */; 87 89 /** Returns whether this item is saved. */ 88 90 virtual bool isItemSaved() const /* override */; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r83921 r84102 215 215 } 216 216 217 bool UIVirtualMachineItemLocal::isItemRemovable() const 218 { 219 return !accessible() 220 || sessionState() == KSessionState_Unlocked; 221 } 222 217 223 bool UIVirtualMachineItemLocal::isItemSaved() const 218 224 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.h
r83755 r84102 92 92 /** Returns whether this item is editable. */ 93 93 virtual bool isItemEditable() const /* override */; 94 /** Returns whether this item is removable. */ 95 virtual bool isItemRemovable() const /* override */; 94 96 /** Returns whether this item is saved. */ 95 97 virtual bool isItemSaved() const /* override */;
Note:
See TracChangeset
for help on using the changeset viewer.