Sanity checks that fix crash (fdo#36495)

This commit is contained in:
Tor Lillqvist 2011-05-20 16:41:33 +03:00
parent 98ab849dfe
commit c6e5c7ce9b

View file

@ -1263,11 +1263,15 @@ IMPL_LINK(UpdateDialog, selectionHandler, void *, EMPTYARG)
}
case DISABLED_UPDATE:
{
bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo );
if ( !m_disabledUpdates.empty() )
bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo );
if ( p->m_bIgnored )
b.append( m_ignoredUpdate );
if ( m_disabledUpdates.empty() )
break;
UpdateDialog::DisabledUpdate & data = m_disabledUpdates[ pos ];
if (data.unsatisfiedDependencies.getLength() != 0)
{