Rewrite missing IP/nick warning of the ban dialog
authorWuzzy <almikes@aol.com>
Thu, 21 Sep 2017 17:42:57 +0200
changeset 12480 d7414e3b3bbb
parent 12479 42da9d8d82ab
child 12481 54d6d3dedfdb
Rewrite missing IP/nick warning of the ban dialog
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;
     }