Debugger/DebugServer.py

branch
5_1_x
changeset 1187
0a1dc25d1881
parent 1181
31d20dc43805
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
1186:df2ec39bb002 1187:0a1dc25d1881
214 for networkInterface in QNetworkInterface.allInterfaces(): 214 for networkInterface in QNetworkInterface.allInterfaces():
215 addressEntries = networkInterface.addressEntries() 215 addressEntries = networkInterface.addressEntries()
216 if len(addressEntries) > 0: 216 if len(addressEntries) > 0:
217 for addressEntry in addressEntries: 217 for addressEntry in addressEntries:
218 if addressEntry.ip().toString().lower() == address.lower(): 218 if addressEntry.ip().toString().lower() == address.lower():
219 return networkInterface.name(), networkInterface.index() 219 return networkInterface.humanReadableName(), \
220 networkInterface.index()
220 221
221 return "", 0 222 return "", 0
222 223
223 def preferencesChanged(self): 224 def preferencesChanged(self):
224 """ 225 """

eric ide

mercurial