# HG changeset patch # User Wuzzy # Date 1506008577 -7200 # Node ID d7414e3b3bbb4d57b878cbdad22bbbf4223a2a75 # Parent 42da9d8d82abf5f46616a2578a75cf4c5f7e6f2f Rewrite missing IP/nick warning of the ban dialog diff -r 42da9d8d82ab -r d7414e3b3bbb QTfrontend/ui/dialog/bandialog.cpp --- a/QTfrontend/ui/dialog/bandialog.cpp Thu Sep 21 17:35:08 2017 +0200 +++ b/QTfrontend/ui/dialog/bandialog.cpp Thu Sep 21 17:42:57 2017 +0200 @@ -85,7 +85,13 @@ { if(leId->text().isEmpty()) { - QMessageBox::warning(this, tr("Warning"), tr("Please, specify %1").arg(byIP() ? tr("IP") : tr("nickname"))); + QString warning_text; + if (byIP()) + warning_text = QString(tr("Please specify an IP address.")); + else + warning_text = QString(tr("Please specify a nickname.")); + + QMessageBox::warning(this, tr("Warning"), warning_text); return; }