summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-05-20 16:41:33 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-05-20 16:41:33 +0300
commit37b8567fc76b78b1844461926175ba6919b8c7bd (patch)
tree4eaa76fd3bc0c1d185341dea67ad13719fdcaf74
parent1885bdcf53251a161da546de4f0c17c232e86055 (diff)
Sanity checks that fix crash (fdo#36495)
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 5820b7433e..a1e3c0f2e7 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -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)
{