[Libreoffice-commits] .: desktop/source

Tor Lillqvist tml at kemper.freedesktop.org
Fri May 20 06:44:28 PDT 2011


 desktop/source/deployment/gui/dp_gui_updatedialog.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 37b8567fc76b78b1844461926175ba6919b8c7bd
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Fri May 20 16:41:33 2011 +0300

    Sanity checks that fix crash (fdo#36495)

diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 5820b74..a1e3c0f 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)
                 {


More information about the Libreoffice-commits mailing list