Diffstat (limited to 'noncore/settings/networksettings') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 11 |
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 @@ -87,5 +87,5 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par Interface *i = new Interface(this, *ni, false); i->setAttached(false); - i->setHardwareName("Disconnected"); + i->setHardwareName(tr("Disconnected")); interfaceNames.insert(i->getInterfaceName(), i); updateInterface(i); @@ -389,9 +389,8 @@ void MainWindowImp::removeClicked(){ else{ 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); } } @@ -406,5 +405,5 @@ void MainWindowImp::configureClicked(){ QListViewItem *item = connectionList->currentItem(); 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; } |