summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-22 11:12:52 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-22 11:12:52 +0000
commitc676dc54371ad5a4b8b3d16054ed75bf8b0278d8 (patch)
treeff63c62f5bf491fa0fc94e3dbf7c8df1adcb4066 /desktop
parent944723b67251ac7c640aa5c4201014ec9f7484ff (diff)
INTEGRATION: CWS native172 (1.17.72); FILE MERGED
2008/07/17 08:50:40 dv 1.17.72.1: #i91692# Check alive status before accessing member variables
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index d62d614f67..62234f8298 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_gui_updatedialog.cxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
* This file is part of OpenOffice.org.
*
@@ -551,13 +551,25 @@ bool UpdateDialog::Thread::update(
const ::boost::optional< ::rtl::OUString> updateWebsiteURL(infoset.getLocalizedUpdateWebsiteURL());
rtl::OUStringBuffer b(package->getDisplayName());
b.append(static_cast< sal_Unicode >(' '));
- b.append(m_dialog.m_version);
+ {
+ vos::OGuard g( Application::GetSolarMutex() );
+ if ( m_stop )
+ return !m_stop;
+ else
+ b.append(m_dialog.m_version);
+ }
b.append(static_cast< sal_Unicode >(' '));
b.append(infoset.getVersion());
if (updateWebsiteURL)
{
b.append(static_cast< sal_Unicode >(' '));
- b.append(m_dialog.m_browserbased);
+ {
+ vos::OGuard g( Application::GetSolarMutex() );
+ if ( m_stop )
+ return !m_stop;
+ else
+ b.append(m_dialog.m_browserbased);
+ }
}
du.name = b.makeStringAndClear();