[games/chessament] src: Don't show player's title

Manuel Alcaraz Zambrano <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 86d3da97ed30c16bcd0deaa7c0a5af1ebff6fa37 by Manuel Alcaraz Zambrano.
Committed on 03/08/2026 at 15:03.
Pushed by manuelal into branch 'master'.

Don't show player's title

M  +0    -3    src/qml/AddPlayerDialog.qml
M  +2    -6    src/searchplayersmodel.cpp

https://invent.kde.org/games/chessament/-/commit/86d3da97ed30c16bcd0deaa7c0a5af1ebff6fa37

diff --git a/src/qml/AddPlayerDialog.qml b/src/qml/AddPlayerDialog.qml
index 6d4548e..81f1e2e 100644
--- a/src/qml/AddPlayerDialog.qml
+++ b/src/qml/AddPlayerDialog.qml
@@ -79,9 +79,6 @@ QQC2.Dialog {
                         federationField.text = player.federation;
                         originField.text = player.origin;
                         genderField.text = player.gender;
-                        Qt.callLater(function (): void {
-                            nameField.text = player.name;
-                        });
                     }
                 }
             }
diff --git a/src/searchplayersmodel.cpp b/src/searchplayersmodel.cpp
index 97d3288..59686c7 100644
--- a/src/searchplayersmodel.cpp
+++ b/src/searchplayersmodel.cpp
@@ -26,12 +26,8 @@ QVariant SearchPlayersModel::data(const QModelIndex &index, int role) const
     const auto player = m_players[index.row()];
 
     switch (role) {
-    case SearchPlayersModel::Role::NameRole: {
-        if (player.title().isEmpty()) {
-            return player.name();
-        }
-        return i18nc("%1 is the player's title, %2 is the player's name", "%1 %2", player.title(), player.name());
-    }
+    case SearchPlayersModel::Role::NameRole:
+        return player.name();
     case SearchPlayersModel::Role::Description: {
         if (player.standardRating() == 0 && player.origin().isEmpty()) {
             return QString{};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.