diff options
author | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:45:23 -0400 |
---|---|---|
committer | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:46:36 -0400 |
commit | 534328f16d0322c937a690f2f15eaa81489a54fe (patch) | |
tree | d3f513e01ae9b57a3f27dbcc02e107b8f0d07b4f | |
parent | 318d11481d719cf537ecdc00f8d676494bab22b6 (diff) | |
download | PrismLauncher-534328f16d0322c937a690f2f15eaa81489a54fe.tar.gz PrismLauncher-534328f16d0322c937a690f2f15eaa81489a54fe.tar.bz2 PrismLauncher-534328f16d0322c937a690f2f15eaa81489a54fe.zip |
Remove unnecessary switch statement
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
DCO Remediation Commit for PandaNinjas <admin@malwarefight.wip.la>
I, PandaNinjas <admin@malwarefight.wip.la>, hereby add my Signed-off-by to this commit: 318d11481d719cf537ecdc00f8d676494bab22b6
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
-rw-r--r-- | launcher/meta/Index.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/meta/Index.cpp b/launcher/meta/Index.cpp index 2902f290..0c6ecccf 100644 --- a/launcher/meta/Index.cpp +++ b/launcher/meta/Index.cpp @@ -45,11 +45,11 @@ QVariant Index::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: - switch (index.column()) - { - case 0: return list->humanReadable(); + if (list.column() == 0) { + return list->humanReadable(); + } else { + break; } - break; case UidRole: return list->uid(); case NameRole: return list->name(); case ListPtrRole: return QVariant::fromValue(list); |