summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-06-01 13:15:02 +0200
committerRachit Gupta <rachitgupta1792@gmail.com>2014-08-04 20:27:45 +0530
commit3947154c0cdef20ba6567348bfd3d20502402be1 (patch)
tree51852d9c43837f719c38469e142af38b67eb193d
parent91249abbf0136096f6fc0b5b31575dd666e2cb7a (diff)
Acquire the solar mutex, otherwise we cannot access vcl in the thread.
Change-Id: I02fdbbfd4c9516597df395163e28f1d616aa390d
-rw-r--r--cui/source/options/personalization.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 838652de5667..73c4e9c4fe2a 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -371,6 +371,10 @@ void SearchAndParseThread::execute()
Bitmap aBmp = aGraphic.GetBitmap();
vResultList.push_back( Image( aBmp ) );
}
+
+ // for VCL to be able to do visual changes in the thread
+ SolarMutexGuard aGuard;
+
m_pPersonaDialog->SetImages( vResultList );
sProgress = "";
m_pPersonaDialog->SetProgress( sProgress );