VirtualBox

Changeset 4359 in vbox for trunk/src


Ignore:
Timestamp:
Aug 24, 2007 3:46:04 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: Serial Port UI: Dont' set irrelevant attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSerialPortSettings.ui.h

    r4354 r4359  
    8383    mPort.SetIOBase (mIOPortLine->text().toULong (NULL, 0));
    8484
    85     mPort.SetHostMode (vboxGlobal().toPortMode (mHostModeCombo->currentText()));
    86     mPort.SetServer (mServerCheck->isChecked());
    87     mPort.SetPath (QDir::convertSeparators (mPortPathLine->text()));
     85    CEnums::PortMode mode = vboxGlobal().toPortMode (mHostModeCombo->currentText());
     86    mPort.SetHostMode (mode);
     87    /* don't set unused properties */
     88    if (mode == CEnums::HostPipePort)
     89        mPort.SetServer (mServerCheck->isChecked());
     90    if (mode != CEnums::DisconnectedPort)
     91        mPort.SetPath (QDir::convertSeparators (mPortPathLine->text()));
    8892}
    8993
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