diff options
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 2ec7bb5496a3..6680ea4feae7 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -162,12 +162,8 @@ bool UUIInteractionHelper::handleRequest( uno::Reference< task::XInteractionRequest > const & rRequest) { - if( - Application::GetMainThreadIdentifier() - != osl::Thread::getCurrentIdentifier() - && - GetpApp() - ) { + if(!Application::IsMainThread() && GetpApp()) + { // we are not in the main thread, let it handle that stuff HandleData aHD(rRequest); Link<void*,void> aLink(&aHD,handlerequest); @@ -217,12 +213,8 @@ beans::Optional< OUString > UUIInteractionHelper::getStringFromRequest( uno::Reference< task::XInteractionRequest > const & rRequest) { - if( - Application::GetMainThreadIdentifier() - != osl::Thread::getCurrentIdentifier() - && - GetpApp() - ) { + if(!Application::IsMainThread() && GetpApp()) + { // we are not in the main thread, let it handle that stuff HandleData aHD(rRequest); Link<void*,void> aLink(&aHD,getstringfromrequest); |