summaryrefslogtreecommitdiff
Side-by-side diff
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
i->setAttached(false);
- i->setHardwareName("Disconnected");
+ i->setHardwareName(tr("Disconnected"));
interfaceNames.insert(i->getInterfaceName(), i);
@@ -390,7 +390,6 @@ void MainWindowImp::removeClicked(){
if(!i->getModuleOwner()->remove(i))
- QMessageBox::information(this, "Error", "Unable to remove.", QMessageBox::Ok);
+ QMessageBox::information(this, tr("Error"), tr("Unable to remove."), QMessageBox::Ok);
else{
- QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok);
- // TODO memory managment....
- // who deletes the interface?
+ delete item;
+// QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok);
}
@@ -407,3 +406,3 @@ void MainWindowImp::configureClicked(){
if(!item){
- QMessageBox::information(this, "Sorry","Please select an interface first.", QMessageBox::Ok);
+ QMessageBox::information(this, tr("Sorry"),tr("Please select an interface first."), QMessageBox::Ok);
return;