diff options
author | Tino Rachui <tra@openoffice.org> | 2002-02-22 08:59:31 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2002-02-22 08:59:31 +0000 |
commit | ea6b1c9085b28e64d2b1daa343d5552b25f55584 (patch) | |
tree | f226031bb8b937f37a8dc15ef0206bad4a30bab6 /fpicker | |
parent | c747cbd3700560cfa2cd0f54635835201d19b8c7 (diff) |
#96112#execute method throws exception if asyn event notifier thread could not be started
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/FilePicker.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx index f1ee162ca8fb..250b7a0437d4 100644 --- a/fpicker/source/win32/filepicker/FilePicker.cxx +++ b/fpicker/source/win32/filepicker/FilePicker.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FilePicker.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: tra $ $Date: 2002-02-21 15:01:13 $ + * last change: $Author: tra $ $Date: 2002-02-22 09:59:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -440,7 +440,7 @@ sal_Int16 SAL_CALL CFilePicker::execute( ) throw(RuntimeException) { OSL_ASSERT(0 != m_pImpl.get()); - sal_Int16 ret = 0; + sal_Int16 ret; if (m_aAsyncEventNotifier.start()) { @@ -455,6 +455,10 @@ sal_Int16 SAL_CALL CFilePicker::execute( ) throw(RuntimeException) else { OSL_ENSURE(sal_False, "Could not start event notifier thread!"); + + throw RuntimeException( + OUString::createFromAscii("Error executing dialog"), + static_cast<XFilePicker*>(this)); } return ret; |