Author: mir3x
Date: Thu Dec 17 21:02:18 2015
New Revision: 31050

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

See bug #24179


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

Modified: branches/S2_5/client/gui-qt/chatline.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/chatline.cpp?rev=31050&r1=31049&r2=31050&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/chatline.cpp    (original)
+++ branches/S2_5/client/gui-qt/chatline.cpp    Thu Dec 17 21:02:18 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