VirtualBox

Changeset 102971 in vbox for trunk/src


Ignore:
Timestamp:
Jan 19, 2024 2:11:27 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: VM settings / System page: A fix for boot-order table; Make sure boot items can't be dropped onto other drop items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp

    r102042 r102971  
    258258void UIBootListWidget::dropEvent(QDropEvent *pEvent)
    259259{
    260     /* Call to base-class: */
    261     QITreeWidget::dropEvent(pEvent);
     260    /* Accept certain positions only: */
     261    switch (dropIndicatorPosition())
     262    {
     263        case QAbstractItemView::AboveItem:
     264        case QAbstractItemView::BelowItem:
     265            /* Call to base-class: */
     266            QITreeWidget::dropEvent(pEvent);
     267            break;
     268        default:
     269            break;
     270    }
     271
    262272    /* Separately notify listeners: */
    263273    emit sigRowChanged();
Note: See TracChangeset for help on using the changeset viewer.

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