summaryrefslogtreecommitdiff
authortille <tille>2003-06-02 15:15:18 (UTC)
committer tille <tille>2003-06-02 15:15:18 (UTC)
commit59138f775070440bc3c7ccb2c31f7dea176d54da (patch) (unidiff)
treed8b11524a159696851211c690b0611395b96acea
parent2d9798f244078089a0305d26509e288bb4a4190e (diff)
downloadopie-59138f775070440bc3c7ccb2c31f7dea176d54da.zip
opie-59138f775070440bc3c7ccb2c31f7dea176d54da.tar.gz
opie-59138f775070440bc3c7ccb2c31f7dea176d54da.tar.bz2
remove item when interface is removed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/mainwindowimp.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp
index abf5663..a0b3113 100644
--- a/noncore/settings/networksettings/mainwindowimp.cpp
+++ b/noncore/settings/networksettings/mainwindowimp.cpp
@@ -88,3 +88,3 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par
88 i->setAttached(false); 88 i->setAttached(false);
89 i->setHardwareName("Disconnected"); 89 i->setHardwareName(tr("Disconnected"));
90 interfaceNames.insert(i->getInterfaceName(), i); 90 interfaceNames.insert(i->getInterfaceName(), i);
@@ -390,7 +390,6 @@ void MainWindowImp::removeClicked(){
390 if(!i->getModuleOwner()->remove(i)) 390 if(!i->getModuleOwner()->remove(i))
391 QMessageBox::information(this, "Error", "Unable to remove.", QMessageBox::Ok); 391 QMessageBox::information(this, tr("Error"), tr("Unable to remove."), QMessageBox::Ok);
392 else{ 392 else{
393 QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok); 393 delete item;
394 // TODO memory managment.... 394// QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok);
395 // who deletes the interface?
396 } 395 }
@@ -407,3 +406,3 @@ void MainWindowImp::configureClicked(){
407 if(!item){ 406 if(!item){
408 QMessageBox::information(this, "Sorry","Please select an interface first.", QMessageBox::Ok); 407 QMessageBox::information(this, tr("Sorry"),tr("Please select an interface first."), QMessageBox::Ok);
409 return; 408 return;