Changeset 6909 in vbox for trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
- Timestamp:
- Feb 11, 2008 8:00:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r6784 r6909 1028 1028 /* clear inner list */ 1029 1029 mNetworksList.clear(); 1030 /* loading internal networks list */ 1030 1031 /* load internal network list */ 1031 1032 CVirtualBox vbox = vboxGlobal().virtualBox(); 1032 1033 ulong count = vbox.GetSystemProperties().GetNetworkAdapterCount(); 1033 CMachine Enumerator en = vbox.GetMachines().Enumerate();1034 while (en.HasMore())1035 {1036 CMachine machine = en.GetNext();1034 CMachineVector vec = vbox.GetMachines2(); 1035 for (CMachineVector::ConstIterator m = vec.begin(); 1036 m != vec.end(); ++ m) 1037 { 1037 1038 for (ulong slot = 0; slot < count; ++ slot) 1038 1039 { 1039 CNetworkAdapter adapter = m achine.GetNetworkAdapter (slot);1040 CNetworkAdapter adapter = m->GetNetworkAdapter (slot); 1040 1041 if (adapter.GetAttachmentType() == CEnums::InternalNetworkAttachment && 1041 1042 !mNetworksList.contains (adapter.GetInternalNetwork())) … … 1043 1044 } 1044 1045 } 1046 1045 1047 mLockNetworkListUpdate = false; 1046 1048 }
Note:
See TracChangeset
for help on using the changeset viewer.