aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta/Index.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-14 23:45:40 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-14 23:45:40 +0300
commitab10524cd763ab9e7796608d40682fdb70912fd0 (patch)
treeb216ed5330a5a1c79018ad3deb073f5cfac05bb1 /launcher/meta/Index.cpp
parent1ccfba13ebe11a1d6ea2897db45b47c2452931f5 (diff)
parent37fb52aada16fa8533ecee3932e10fcbee0ca1d5 (diff)
downloadPrismLauncher-ab10524cd763ab9e7796608d40682fdb70912fd0.tar.gz
PrismLauncher-ab10524cd763ab9e7796608d40682fdb70912fd0.tar.bz2
PrismLauncher-ab10524cd763ab9e7796608d40682fdb70912fd0.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into export
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/meta/Index.cpp')
-rw-r--r--launcher/meta/Index.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/meta/Index.cpp b/launcher/meta/Index.cpp
index 242aad9f..4dccccca 100644
--- a/launcher/meta/Index.cpp
+++ b/launcher/meta/Index.cpp
@@ -45,10 +45,10 @@ QVariant Index::data(const QModelIndex &index, int role) const
switch (role)
{
case Qt::DisplayRole:
- switch (index.column())
- {
- case 0: return list->humanReadable();
- default: break;
+ if (index.column() == 0) {
+ return list->humanReadable();
+ } else {
+ break;
}
case UidRole: return list->uid();
case NameRole: return list->name();