VirtualBox

Changeset 37834 in vbox


Ignore:
Timestamp:
Jul 8, 2011 10:20:49 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings / Storage page: Settings save bug fix (dvd/floppy attachment device/port change).

File:
1 edited

Legend:

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

    r37825 r37834  
    35843584{
    35853585    /* IMediumAttachment could be indirectly updated through IMachine
    3586      * only if attachment device type was NOT changed and is one of the next types:
     3586     * only if attachment type, device and port were NOT changed and is one of the next types:
    35873587     * KDeviceType_Floppy or KDeviceType_DVD.
    35883588     * For other cases we will recreate attachment fully: */
     
    35913591    KDeviceType initialAttachmentDeviceType = initialAttachmentData.m_attachmentType;
    35923592    KDeviceType currentAttachmentDeviceType = currentAttachmentData.m_attachmentType;
     3593    LONG iInitialAttachmentDevice = initialAttachmentData.m_iAttachmentDevice;
     3594    LONG iCurrentAttachmentDevice = currentAttachmentData.m_iAttachmentDevice;
     3595    LONG iInitialAttachmentPort = initialAttachmentData.m_iAttachmentPort;
     3596    LONG iCurrentAttachmentPort = currentAttachmentData.m_iAttachmentPort;
    35933597    return (currentAttachmentDeviceType == initialAttachmentDeviceType) &&
     3598           (iCurrentAttachmentDevice == iInitialAttachmentDevice) &&
     3599           (iCurrentAttachmentPort == iInitialAttachmentPort) &&
    35943600           (currentAttachmentDeviceType == KDeviceType_Floppy || currentAttachmentDeviceType == KDeviceType_DVD);
    35953601}
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