diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-14 18:16:13 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-14 18:16:13 +0200 |
commit | 779f70057b021e285afd60cc650a14cd5feacffd (patch) | |
tree | 0a68d6ef065f57437441a790d6109595c47056f5 /launcher/minecraft/PackProfile.cpp | |
parent | a44cb6430eac81e6e89283c50b57142ca7f05747 (diff) | |
parent | ce2ca1381519a2e261d7f76dffa874d559d979c2 (diff) | |
download | PrismLauncher-779f70057b021e285afd60cc650a14cd5feacffd.tar.gz PrismLauncher-779f70057b021e285afd60cc650a14cd5feacffd.tar.bz2 PrismLauncher-779f70057b021e285afd60cc650a14cd5feacffd.zip |
Merge commit 'ce2ca1381519a2e261d7f76dffa874d559d979c2' into staging
Diffstat (limited to 'launcher/minecraft/PackProfile.cpp')
-rw-r--r-- | launcher/minecraft/PackProfile.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp index 00809bb0..1f210d69 100644 --- a/launcher/minecraft/PackProfile.cpp +++ b/launcher/minecraft/PackProfile.cpp @@ -591,10 +591,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const } case Qt::DecorationRole: { - switch(column) - { - case NameColumn: - { + if (column == NameColumn) { auto severity = patch->getProblemSeverity(); switch (severity) { @@ -606,11 +603,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const return QVariant(); } } - default: - { - return QVariant(); - } - } + return QVariant(); } } return QVariant(); |