- Timestamp:
- Sep 19, 2008 9:05:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsVRDP.cpp
r10167 r12592 39 39 mCbVRDPMethod->insertItem (2, ""); /* KVRDPAuthType_Guest */ 40 40 41 /* Initial disabled */ 42 mGbVRDP->setChecked (false); 43 41 44 /* Applying language settings */ 42 45 retranslateUi(); … … 48 51 49 52 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 } 55 61 } 56 62 … … 58 64 { 59 65 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 } 64 73 } 65 74
Note:
See TracChangeset
for help on using the changeset viewer.