VirtualBox

Changeset 12592 in vbox for trunk/src


Ignore:
Timestamp:
Sep 19, 2008 9:05:40 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Don't update VRDP settings page if there isn't VRDP (OSE).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsVRDP.cpp

    r10167 r12592  
    3939    mCbVRDPMethod->insertItem (2, ""); /* KVRDPAuthType_Guest */
    4040
     41    /* Initial disabled */
     42    mGbVRDP->setChecked (false);
     43
    4144    /* Applying language settings */
    4245    retranslateUi();
     
    4851
    4952    CVRDPServer vrdp = aMachine.GetVRDPServer();
    50     mGbVRDP->setChecked (vrdp.GetEnabled());
    51     mLeVRDPPort->setText (QString::number (vrdp.GetPort()));
    52     mCbVRDPMethod->setCurrentIndex (mCbVRDPMethod->
    53         findText (vboxGlobal().toString (vrdp.GetAuthType())));
    54     mLeVRDPTimeout->setText (QString::number (vrdp.GetAuthTimeout()));
     53    if (!vrdp.isNull())
     54    {
     55        mGbVRDP->setChecked (vrdp.GetEnabled());
     56        mLeVRDPPort->setText (QString::number (vrdp.GetPort()));
     57        mCbVRDPMethod->setCurrentIndex (mCbVRDPMethod->
     58                                        findText (vboxGlobal().toString (vrdp.GetAuthType())));
     59        mLeVRDPTimeout->setText (QString::number (vrdp.GetAuthTimeout()));
     60    }
    5561}
    5662
     
    5864{
    5965    CVRDPServer vrdp = mMachine.GetVRDPServer();
    60     vrdp.SetEnabled (mGbVRDP->isChecked());
    61     vrdp.SetPort (mLeVRDPPort->text().toULong());
    62     vrdp.SetAuthType (vboxGlobal().toVRDPAuthType (mCbVRDPMethod->currentText()));
    63     vrdp.SetAuthTimeout (mLeVRDPTimeout->text().toULong());
     66    if (!vrdp.isNull())
     67    {
     68        vrdp.SetEnabled (mGbVRDP->isChecked());
     69        vrdp.SetPort (mLeVRDPPort->text().toULong());
     70        vrdp.SetAuthType (vboxGlobal().toVRDPAuthType (mCbVRDPMethod->currentText()));
     71        vrdp.SetAuthTimeout (mLeVRDPTimeout->text().toULong());
     72    }
    6473}
    6574
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