GH-952 flesh out {version,custom}.json upgrade step

This commit is contained in:
Petr Mrázek
2015-05-15 01:10:08 +02:00
parent 5bbe1c7132
commit 416e08f741
2 changed files with 53 additions and 21 deletions

View File

@ -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();
}