summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2018-01-04 12:41:07 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-06 13:40:02 +0100
commit0ddd15c1134dde249552ebe763c1cd005e8b4591 (patch)
tree670406e036d0be05928bf91b728345021f77ecb4 /vcl
parent0a1b0458cb4fa3f253ec1800bdcce154c1ef754b (diff)
tdf#114818 hold the mutex before executing the error dialog
Also add an assert to ErrorBox to ensure the mutex is acquired Change-Id: I3e426024dad6ddfc5cffc7861b0cba9e8989c018 Reviewed-on: https://gerrit.libreoffice.org/47388 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/msgbox.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index b86335840bb7..428e4f31ef08 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -433,6 +433,7 @@ OUString WarningBox::GetStandardText()
ErrorBox::ErrorBox( vcl::Window* pParent, const OUString& rMessage ) :
MessBox( pParent, MessBoxStyle::Ok | MessBoxStyle::DefaultOk, 0, OUString(), rMessage )
{
+ DBG_TESTSOLARMUTEX();
// Default Text is the display title from the application
if ( GetText().isEmpty() )
SetText( GetStandardText() );
@@ -450,6 +451,7 @@ ErrorBox::ErrorBox( vcl::Window* pParent, MessBoxStyle nStyle, WinBits nWinBits,
const OUString& rMessage ) :
MessBox( pParent, nStyle, nWinBits, OUString(), rMessage )
{
+ DBG_TESTSOLARMUTEX();
// Default Text is the display title from the application
if ( GetText().isEmpty() )
SetText( GetStandardText() );