Diffstat (limited to 'noncore/settings/networksettings2/networksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/networksettings.cpp b/noncore/settings/networksettings2/networksettings.cpp index 2714dd5..469cec5 100644 --- a/noncore/settings/networksettings2/networksettings.cpp +++ b/noncore/settings/networksettings2/networksettings.cpp | |||
@@ -235,17 +235,19 @@ void NetworkSettings::SLOT_EditNode( QListBoxItem * LBI ) { | |||
235 | } // else new name | 235 | } // else new name |
236 | // new name -> remove item | 236 | // new name -> remove item |
237 | NSResources->removeNetworkSetup( OldName ); | 237 | NSResources->removeNetworkSetup( OldName ); |
238 | NSResources->addNetworkSetup( NC, 0 ); | 238 | NSResources->addNetworkSetup( NC, 0 ); |
239 | } // else not changed | 239 | } // else not changed |
240 | 240 | ||
241 | // must add it here since change will trigger event | 241 | // no update (will come later) |
242 | Profiles_LB->blockSignals( TRUE ); | ||
242 | Profiles_LB->changeItem( NC->devicePixmap(), | 243 | Profiles_LB->changeItem( NC->devicePixmap(), |
243 | NC->name(), | 244 | NC->name(), |
244 | Profiles_LB->index( LBI ) | 245 | Profiles_LB->index( LBI ) |
245 | ); | 246 | ); |
247 | Profiles_LB->blockSignals( FALSE ); | ||
246 | } else { | 248 | } else { |
247 | // new item | 249 | // new item |
248 | int ci = Profiles_LB->count(); | 250 | int ci = Profiles_LB->count(); |
249 | NSResources->addNetworkSetup( NC, 0 ); | 251 | NSResources->addNetworkSetup( NC, 0 ); |
250 | NC->setNumber( NSResources->assignNetworkSetupNumber() ); | 252 | NC->setNumber( NSResources->assignNetworkSetupNumber() ); |
251 | Profiles_LB->insertItem( NC->devicePixmap(), NC->name() ); | 253 | Profiles_LB->insertItem( NC->devicePixmap(), NC->name() ); |