Sanity checks that fix crash (fdo#36495)

Signed-off-by: Michael Meeks <michael.meeks@novell.com>
This commit is contained in:
Tor Lillqvist
2011-05-20 16:41:33 +03:00
committed by Michael Meeks
parent 8eeea83cd2
commit 4f2582eda7

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)
{