Skip to content

Commit

Permalink
Allow to delete single multiversion packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Sep 8, 2015
1 parent 6aed894 commit a8d5095
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions src/YQPkgVersionsView.cc
Expand Up @@ -357,23 +357,7 @@ YQPkgVersionsView::handleMixedMultiVersion( YQPkgMultiVersion * newSelected )

if ( forceContinue )
{
if ( multiVersion )
{
// We can only get here if a non-multiversion poolItem was the
// candidate, so let's set the candidate to the one the user
// just clicked at; this will implicitly unselect the previous
// one.
_selectable->setCandidate( poolItem );
_selectable->setPickStatus( poolItem, S_Install );
_selectable->setStatus( S_Install );
}
else
{
unselectAllMultiVersion();
_selectable->setCandidate( poolItem );
_selectable->setStatus( S_Install );
}

_selectable->setPickStatus( poolItem, S_Install );
emit statusChanged(); // update status icons for all versions
}
else
Expand Down Expand Up @@ -674,13 +658,8 @@ void YQPkgMultiVersion::cycleStatus()

void YQPkgMultiVersion::setStatus( ZyppStatus newStatus )
{
if ( _zyppPoolItem->multiversionInstall() )
_selectable->setPickStatus( _zyppPoolItem, newStatus );
else
{
_selectable->setCandidate( _zyppPoolItem );
_selectable->setStatus( newStatus );
}
yuiMilestone() << "Setting pick status to " << newStatus << endl;
_selectable->setPickStatus( _zyppPoolItem, newStatus );
}


Expand Down

0 comments on commit a8d5095

Please sign in to comment.