summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/mainwindowimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (show 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
@@ -85,9 +85,9 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par
85 if(!found){ 85 if(!found){
86 if(!(*ni).contains("_")){ 86 if(!(*ni).contains("_")){
87 Interface *i = new Interface(this, *ni, false); 87 Interface *i = new Interface(this, *ni, false);
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);
91 updateInterface(i); 91 updateInterface(i);
92 connect(i, SIGNAL(updateInterface(Interface *)), this, SLOT(updateInterface(Interface *))); 92 connect(i, SIGNAL(updateInterface(Interface *)), this, SLOT(updateInterface(Interface *)));
93 } 93 }
@@ -387,13 +387,12 @@ void MainWindowImp::removeClicked(){
387 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", QMessageBox::Ok); 387 QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", QMessageBox::Ok);
388 } 388 }
389 else{ 389 else{
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 }
397 } 396 }
398} 397}
399 398
@@ -404,9 +403,9 @@ void MainWindowImp::removeClicked(){
404 */ 403 */
405void MainWindowImp::configureClicked(){ 404void MainWindowImp::configureClicked(){
406 QListViewItem *item = connectionList->currentItem(); 405 QListViewItem *item = connectionList->currentItem();
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;
410 } 409 }
411 410
412 QString currentProfileText = currentProfileLabel->text(); 411 QString currentProfileText = currentProfileLabel->text();