Skip to content

Commit

Permalink
NOISSUE When changing version of or installing a package, remove cust…
Browse files Browse the repository at this point in the history
…omized version
  • Loading branch information
peterix committed Feb 8, 2018
1 parent f115bdf commit b3fb437
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions api/logic/minecraft/ComponentList.cpp
Expand Up @@ -1172,10 +1172,15 @@ bool ComponentList::setComponentVersion(const QString& uid, const QString& versi
auto iter = d->componentIndex.find(uid);
if(iter != d->componentIndex.end())
{
ComponentPtr component = *iter;
// set existing
(*iter)->setVersion(version);
(*iter)->setImportant(important);
return true;
if(component->revert())
{
component->setVersion(version);
component->setImportant(important);
return true;
}
return false;
}
else
{
Expand Down

0 comments on commit b3fb437

Please sign in to comment.