summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/yuzu/game_list_p.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index eb1bf0775..92779a9c7 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -110,18 +110,22 @@ public:
110 const auto& row1 = row_data.at(UISettings::values.row_1_text_id); 110 const auto& row1 = row_data.at(UISettings::values.row_1_text_id);
111 const int row2_id = UISettings::values.row_2_text_id; 111 const int row2_id = UISettings::values.row_2_text_id;
112 112
113 if (role == SortRole) 113 if (role == SortRole) {
114 return row1.toLower(); 114 return row1.toLower();
115 }
115 116
116 if (row2_id == 4) // None 117 // None
118 if (row2_id == 4) {
117 return row1; 119 return row1;
120 }
118 121
119 const auto& row2 = row_data.at(row2_id); 122 const auto& row2 = row_data.at(row2_id);
120 123
121 if (row1 == row2) 124 if (row1 == row2) {
122 return row1; 125 return row1;
126 }
123 127
124 return QString(row1 + QStringLiteral("\n ") + row2); 128 return QStringLiteral("%1\n %2").arg(row1, row2);
125 } 129 }
126 130
127 return GameListItem::data(role); 131 return GameListItem::data(role);