fix issue with contributor hat being displayed for wrong players 0.9.21
authorsheepluva
Sat, 17 Jan 2015 01:48:57 +0100
branch0.9.21
changeset 10753 e56db5d988ef
parent 10750 31c744824dab
child 10756 4846f229b706
child 10803 df39aa3f6d4d
fix issue with contributor hat being displayed for wrong players
QTfrontend/model/playerslistmodel.cpp
QTfrontend/model/playerslistmodel.h
--- a/QTfrontend/model/playerslistmodel.cpp	Tue Jan 06 19:26:25 2015 +0100
+++ b/QTfrontend/model/playerslistmodel.cpp	Sat Jan 17 01:48:57 2015 +0100
@@ -237,6 +237,7 @@
         << index.data(InGame).toBool()
         << index.data(RoomFilterRole).toBool()
         << index.data(InRoom).toBool()
+        << index.data(Contributor).toBool()
         ;
 
     for(int i = flags.size() - 1; i >= 0; --i)
--- a/QTfrontend/model/playerslistmodel.h	Tue Jan 06 19:26:25 2015 +0100
+++ b/QTfrontend/model/playerslistmodel.h	Sat Jan 17 01:48:57 2015 +0100
@@ -23,6 +23,8 @@
         InGame      = Qt::UserRole + 6,
         InRoom      = Qt::UserRole + 7,
         Contributor = Qt::UserRole + 8
+        // if you add a role that will affect the player icon,
+        // then also add it to the flags Qlist in updateIcon()!
     };
 
     enum SpecialRoles {