aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-11 11:14:06 +0100
committerGitHub <noreply@github.com>2023-07-11 11:14:06 +0100
commit4c6929038159a29c437b30616daa0b2672531e4d (patch)
treeba99c0783670059b7818aa14d3720f7798081ed7 /launcher/meta
parent64c591b234cec2519d8a04b32d4b6e85dcf204da (diff)
parent640aaa8c23d714ce17bc8e78754af6219abc6466 (diff)
downloadPrismLauncher-4c6929038159a29c437b30616daa0b2672531e4d.tar.gz
PrismLauncher-4c6929038159a29c437b30616daa0b2672531e4d.tar.bz2
PrismLauncher-4c6929038159a29c437b30616daa0b2672531e4d.zip
Merge branch 'develop' into better-component-installation
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();