aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-22 11:26:02 +0100
committerGitHub <noreply@github.com>2023-07-22 11:26:02 +0100
commit57430fd189aed592a170d597de61b3acabaaa43d (patch)
treeb3727db40fdea31d24541c0c8181c43df13e774c /launcher/meta
parentec85266860b7503b24ff3840fb6bf74588acc7c8 (diff)
parent6ffcfcd7e9d96ae0a2846d1cf23b27425a838709 (diff)
downloadPrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.tar.gz
PrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.tar.bz2
PrismLauncher-57430fd189aed592a170d597de61b3acabaaa43d.zip
Merge branch 'develop' into better-launch
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/meta')
-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();