- Timestamp:
- Feb 3, 2020 1:18:00 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135962
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r82944 r82956 290 290 /* And machine-item content to take into account: */ 291 291 int iTopLineWidth = m_iMinimumNameWidth; 292 if (!node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 292 if ( node()->toMachineNode()->cache()->itemType() == UIVirtualMachineItem::ItemType_Local 293 && !node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 293 294 iTopLineWidth += (iMinorSpacing + 294 295 m_iMinimumSnapshotNameWidth); … … 701 702 int iMinimumSnapshotNameWidth = 0; 702 703 /* Is there any snapshot exists? */ 703 if (!node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 704 if ( node()->toMachineNode()->cache()->itemType() == UIVirtualMachineItem::ItemType_Local 705 && !node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 704 706 { 705 707 QFontMetrics fm(m_snapshotNameFont, model()->paintDevice()); … … 785 787 void UIChooserItemMachine::updateVisibleSnapshotName() 786 788 { 789 /* Make sure this is local machine item: */ 790 if (node()->toMachineNode()->cache()->itemType() != UIVirtualMachineItem::ItemType_Local) 791 return; 792 787 793 /* Prepare variables: */ 788 794 QPaintDevice *pPaintDevice = model()->paintDevice(); … … 1088 1094 1089 1095 /* Paint middle element: */ 1090 if (!node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 1096 if ( node()->toMachineNode()->cache()->itemType() == UIVirtualMachineItem::ItemType_Local 1097 && !node()->toMachineNode()->cache()->toLocal()->snapshotName().isEmpty()) 1091 1098 { 1092 1099 /* Prepare variables: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsGroup.cpp
r80784 r82956 78 78 void UIDetailsGroup::buildGroup(const QList<UIVirtualMachineItem*> &machineItems) 79 79 { 80 /* Filter out cloud VM items for now: */ 81 QList<UIVirtualMachineItem*> filteredItems; 82 foreach (UIVirtualMachineItem *pItem, machineItems) 83 if (pItem->itemType() == UIVirtualMachineItem::ItemType_Local) 84 filteredItems << pItem; 85 80 86 /* Remember passed machine-items: */ 81 m_machineItems = machineItems;87 m_machineItems = filteredItems; 82 88 83 89 /* Cleanup superflous items: */
Note:
See TracChangeset
for help on using the changeset viewer.