Author: mir3x
Date: Thu Dec 17 21:02:25 2015
New Revision: 31051

URL: http://svn.gna.org/viewcvs/freeciv?rev=31051&view=rev
Log:
Fixed case sensitivity of usernames and leader names
when sending private messagess in qt-client.

See bug #24179


Modified:
    branches/S2_6/client/gui-qt/chatline.cpp

Modified: branches/S2_6/client/gui-qt/chatline.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/chatline.cpp?rev=31051&r1=31050&r2=31051&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/chatline.cpp    (original)
+++ branches/S2_6/client/gui-qt/chatline.cpp    Thu Dec 17 21:02:25 2015
@@ -487,7 +487,7 @@
     if (s1.length() < i) {
       continue;
     }
-    if (s1.left(i) == str) {
+    if (!QString::compare(s1.left(i), str, Qt::CaseInsensitive)) {
       return false;
     }
   } conn_list_iterate_end;
@@ -496,7 +496,7 @@
     if (s1.length() < i) {
       continue;
     }
-    if (s1.left(i) == str) {
+    if (!QString::compare(s1.left(i), str, Qt::CaseInsensitive)) {
       return false;
     }
   } players_iterate_end;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to