VirtualBox

Changeset 78546 in vbox


Ignore:
Timestamp:
May 16, 2019 1:07:34 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6247: VM Settings / Storage page: Make sure controller has valid sub type according to new controller bus type; Besides that pass some valid parent to message-boxes we use there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r78545 r78546  
    17091709                        if (!opticalIds.isEmpty())
    17101710                        {
    1711                             if (!msgCenter().confirmStorageBusChangeWithOpticalRemoval())
     1711                            if (!msgCenter().confirmStorageBusChangeWithOpticalRemoval(qobject_cast<QWidget*>(QObject::parent())))
    17121712                                return false;
    17131713                            foreach (const QUuid &uId, opticalIds)
     
    17241724                    if (uMaxPortCount * uMaxDevicePerPortCount < (uint)ids.size())
    17251725                    {
    1726                         if (!msgCenter().confirmStorageBusChangeWithExcessiveRemoval())
     1726                        if (!msgCenter().confirmStorageBusChangeWithExcessiveRemoval(qobject_cast<QWidget*>(QObject::parent())))
    17271727                            return false;
    17281728                        for (int i = uMaxPortCount * uMaxDevicePerPortCount; i < ids.size(); ++i)
     
    17301730                    }
    17311731
    1732                     /* Push new controller type: */
     1732                    /* Push new bus/controller type: */
    17331733                    pItemController->setCtrBusType(enmNewCtrBusType);
     1734                    pItemController->setCtrType(pItemController->ctrTypes().first());
    17341735                    emit dataChanged(aIndex, aIndex);
    17351736
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