VirtualBox

Ignore:
Timestamp:
Oct 29, 2009 2:25:53 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54100
Message:

FE/Qt4: VM Settings / Storage Page: Fixed bug - loading "empty" attachments (during opening VM Settings) was performed in verbose mode (warning dialog appears); Added too-tip to Storage Slot combo.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsHD.h

    r23723 r24161  
    329329public:
    330330
    331     AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType);
     331    AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType, bool aVerbose);
    332332
    333333    StorageSlot attSlot() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp

    r24117 r24161  
    602602
    603603/* Attachment Item */
    604 AttachmentItem::AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType)
     604AttachmentItem::AttachmentItem (AbstractItem *aParent, KDeviceType aDeviceType, bool aVerbose)
    605605    : AbstractItem (aParent)
    606606    , mAttDeviceType (aDeviceType)
     
    628628            if (freeMediumIds.size() > 1)
    629629                setAttMediumId (freeMediumIds [1]);
    630             else if (freeMediumIds.size() > 0)
     630            else if (!aVerbose && freeMediumIds.size() > 0)
    631631                setAttMediumId (freeMediumIds [0]);
    632632            break;
     
    14021402        QModelIndex parentIndex = index (parentPosition, 0, root());
    14031403        beginInsertRows (parentIndex, parent->childCount(), parent->childCount());
    1404         new AttachmentItem (parent, aDeviceType);
     1404        new AttachmentItem (parent, aDeviceType, qobject_cast <QWidget*> (QObject::parent())->isVisible());
    14051405        endInsertRows();
    14061406        return index (parent->childCount() - 1, 0, parentIndex);
     
    20882088                int attSlotPos = mCbSlot->findText (vboxGlobal().toString (slt));
    20892089                mCbSlot->setCurrentIndex (attSlotPos == -1 ? 0 : attSlotPos);
     2090                mCbSlot->setToolTip (mCbSlot->itemText (mCbSlot->currentIndex()));
    20902091                mLbSlot->setEnabled (!mDisableStaticControls);
    20912092                mCbSlot->setEnabled (!mDisableStaticControls);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette