Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 117bac1..a446d29 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -309,5 +309,5 @@ void MainWindowImp::jobDone(KProcess *process){ | |||
309 | // See if we already have it | 309 | // See if we already have it |
310 | if(interfaceNames.find(interfaceName) == interfaceNames.end()){ | 310 | if(interfaceNames.find(interfaceName) == interfaceNames.end()){ |
311 | if(fileName == TEMP_ALL) | 311 | if(fileName == TEMP_ALL) |
312 | i = new Interface(this, interfaceName, false); | 312 | i = new Interface(this, interfaceName, false); |
313 | else | 313 | else |
@@ -329,7 +329,6 @@ void MainWindowImp::jobDone(KProcess *process){ | |||
329 | // It was an interface we already had. | 329 | // It was an interface we already had. |
330 | else{ | 330 | else{ |
331 | i = interfaceNames[interfaceName]; | ||
332 | if(fileName != TEMP_ALL) | 331 | if(fileName != TEMP_ALL) |
333 | i->setStatus(true); | 332 | (interfaceNames[interfaceName])->setStatus(true); |
334 | } | 333 | } |
335 | } | 334 | } |
@@ -399,5 +398,5 @@ void MainWindowImp::updateInterface(Interface *i){ | |||
399 | if(i->getInterfaceName().contains("usb")) | 398 | if(i->getInterfaceName().contains("usb")) |
400 | typeName = "usb"; | 399 | typeName = "usb"; |
401 | 400 | ||
402 | if(!i->isAttached()) | 401 | if(!i->isAttached()) |
403 | typeName = "connect_no"; | 402 | typeName = "connect_no"; |