diff options
Diffstat (limited to 'logic/minecraft/MinecraftProfile.cpp')
-rw-r--r-- | logic/minecraft/MinecraftProfile.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/logic/minecraft/MinecraftProfile.cpp b/logic/minecraft/MinecraftProfile.cpp index e87ece00..acde7dc7 100644 --- a/logic/minecraft/MinecraftProfile.cpp +++ b/logic/minecraft/MinecraftProfile.cpp @@ -274,7 +274,17 @@ QVariant MinecraftProfile::data(const QModelIndex &index, int role) const case 0: return VersionPatches.at(row)->getPatchName(); case 1: - return VersionPatches.at(row)->getPatchVersion(); + { + auto patch = VersionPatches.at(row); + if(patch->isCustom()) + { + return QString("%1 (Custom)").arg(patch->getPatchVersion()); + } + else + { + return patch->getPatchVersion(); + } + } default: return QVariant(); } |