summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-11-05 18:17:05 +0100
committerAndras Timar <andras.timar@collabora.com>2018-11-13 21:06:44 +0100
commit71c6a308035eb687f8fd8823c1e16670ad2a450b (patch)
treeacd9aa72f43f74695d879defedc0b606aa8f72b3 /vcl/source
parenta3b3eea394a5e6388e84d69f32721d11c2e7b2be (diff)
LOK: update main thread
Change-Id: I75df6ae9f9fb41b08a8774ce026f79fdd120b629 Reviewed-on: https://gerrit.libreoffice.org/62921 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 6f076e75b2adb4628ee3cea311781c40f219bba7)
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/svapp.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index e08adff710e3..c412728cd6a4 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1383,6 +1383,13 @@ void Application::SetHelp( Help* pHelp )
ImplGetSVData()->maAppData.mpHelp = pHelp;
}
+void Application::UpdateMainThread()
+{
+ ImplSVData* pSVData = ImplGetSVData();
+ if (pSVData)
+ pSVData->mnMainThreadId = osl::Thread::getCurrentIdentifier();
+}
+
Help* Application::GetHelp()
{
return ImplGetSVData()->maAppData.mpHelp;