aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-07-07 15:19:00 +0200
committerGitHub <noreply@github.com>2023-07-07 15:19:00 +0200
commite225a721807b00297a5733e9d60fe2b5603de77c (patch)
tree91d9e3ba54a32cb5724f0297dd842b990f065db7 /launcher/meta
parent2cb22ad280ec0b540ec6e96759d478c60562bc9a (diff)
parent13d67c6524a29daea51242d17ba0c6a2b8593747 (diff)
downloadPrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.tar.gz
PrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.tar.bz2
PrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.zip
Merge pull request #1128 from pandaninjas/fix-implicit-fallthrough
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();