diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-15 01:10:08 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-15 01:37:15 +0200 |
commit | 416e08f7417abd767e250e185a5be8bd1110dae8 (patch) | |
tree | b9c9d580b5367d618758c438d284245243a7492f /logic/minecraft/MinecraftProfile.cpp | |
parent | 5bbe1c7132f3fd4c6850519e045f378e114ada50 (diff) | |
download | MultiMC-416e08f7417abd767e250e185a5be8bd1110dae8.tar MultiMC-416e08f7417abd767e250e185a5be8bd1110dae8.tar.gz MultiMC-416e08f7417abd767e250e185a5be8bd1110dae8.tar.lz MultiMC-416e08f7417abd767e250e185a5be8bd1110dae8.tar.xz MultiMC-416e08f7417abd767e250e185a5be8bd1110dae8.zip |
GH-952 flesh out {version,custom}.json upgrade step
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(); } |