Changeset 16090 in vbox
- Timestamp:
- Jan 20, 2009 4:48:28 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41800
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsNetwork.h
r11871 r16090 161 161 162 162 void updateNetworksList(); 163 #if defined (VBOX_WITH_NETFLT) 164 void updateInterfaceList(); 165 #endif 163 166 #if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT) 164 167 void onCurrentPageChanged (int); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp
r15600 r16090 760 760 761 761 /* Setup connections */ 762 #if defined (VBOX_WITH_NETFLT) 763 connect (page->mCbNAType, SIGNAL (activated (int)), 764 this, SLOT (updateInterfaceList())); 765 #endif 762 766 connect (page->mCbNetwork, SIGNAL (editTextChanged (const QString&)), 763 767 this, SLOT (updateNetworksList())); … … 879 883 } 880 884 885 #if defined (VBOX_WITH_NETFLT) 886 void VBoxVMSettingsNetworkPage::updateInterfaceList() 887 { 888 VBoxVMSettingsNetwork *page = 889 static_cast <VBoxVMSettingsNetwork*> (mTwAdapters->currentWidget()); 890 891 bool isHostInterfaceAttached = vboxGlobal().toNetworkAttachmentType ( 892 page->mCbNAType->currentText()) == KNetworkAttachmentType_HostInterface; 893 894 mNIList->setEnabled (isHostInterfaceAttached); 895 } 896 #endif 897 881 898 #if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT) 882 899 void VBoxVMSettingsNetworkPage::onCurrentPageChanged (int aIndex) … … 886 903 Assert (page); 887 904 mNIList->setCurrentInterface (page->interfaceName()); 905 906 #if defined (VBOX_WITH_NETFLT) 907 updateInterfaceList(); 908 #endif 888 909 } 889 910
Note:
See TracChangeset
for help on using the changeset viewer.