summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-05-20 16:41:33 +0300
committerMichael Meeks <michael.meeks@novell.com>2011-05-20 15:13:25 +0100
commit88dfc7bb329711a17392a8fcc92809cbf6f2a999 (patch)
treed6a3a4de82ce9b1bf4df95b93d065a97e2093e73
parentc09adb8b98761f7644af6793dac968c3f984b081 (diff)
Sanity checks that fix crash (fdo#36495)
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-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 8b73e6bae8..704082224c 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)
{