Changeset 24161 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 29, 2009 2:25:53 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 54100
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsHD.h
r23723 r24161 329 329 public: 330 330 331 AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType );331 AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType, bool aVerbose); 332 332 333 333 StorageSlot attSlot() const; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp
r24117 r24161 602 602 603 603 /* Attachment Item */ 604 AttachmentItem::AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType )604 AttachmentItem::AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType, bool aVerbose) 605 605 : AbstractItem (aParent) 606 606 , mAttDeviceType (aDeviceType) … … 628 628 if (freeMediumIds.size() > 1) 629 629 setAttMediumId (freeMediumIds [1]); 630 else if ( freeMediumIds.size() > 0)630 else if (!aVerbose && freeMediumIds.size() > 0) 631 631 setAttMediumId (freeMediumIds [0]); 632 632 break; … … 1402 1402 QModelIndex parentIndex = index (parentPosition, 0, root()); 1403 1403 beginInsertRows (parentIndex, parent->childCount(), parent->childCount()); 1404 new AttachmentItem (parent, aDeviceType );1404 new AttachmentItem (parent, aDeviceType, qobject_cast <QWidget*> (QObject::parent())->isVisible()); 1405 1405 endInsertRows(); 1406 1406 return index (parent->childCount() - 1, 0, parentIndex); … … 2088 2088 int attSlotPos = mCbSlot->findText (vboxGlobal().toString (slt)); 2089 2089 mCbSlot->setCurrentIndex (attSlotPos == -1 ? 0 : attSlotPos); 2090 mCbSlot->setToolTip (mCbSlot->itemText (mCbSlot->currentIndex())); 2090 2091 mLbSlot->setEnabled (!mDisableStaticControls); 2091 2092 mCbSlot->setEnabled (!mDisableStaticControls);
Note:
See TracChangeset
for help on using the changeset viewer.