NOISSUE When changing version of or installing a package, remove customized version
This commit is contained in:
parent
f115bdf5b8
commit
b3fb437f8e
@ -1172,11 +1172,16 @@ 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);
|
||||
if(component->revert())
|
||||
{
|
||||
component->setVersion(version);
|
||||
component->setImportant(important);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// add new
|
||||
|
Loading…
Reference in New Issue
Block a user