diff options
Diffstat (limited to 'src/concurrent')
-rw-r--r-- | src/concurrent/qtconcurrentrunbase.h | 2 | ||||
-rw-r--r-- | src/concurrent/qtconcurrentthreadengine.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/concurrent/qtconcurrentrunbase.h b/src/concurrent/qtconcurrentrunbase.h index c748d8e2b9..20267a2d5b 100644 --- a/src/concurrent/qtconcurrentrunbase.h +++ b/src/concurrent/qtconcurrentrunbase.h @@ -114,7 +114,7 @@ public: } catch (QException &e) { promise.reportException(e); } catch (...) { - promise.reportException(QUnhandledException()); + promise.reportException(QUnhandledException(std::current_exception())); } #endif diff --git a/src/concurrent/qtconcurrentthreadengine.cpp b/src/concurrent/qtconcurrentthreadengine.cpp index 081018fbcc..fcc504a96c 100644 --- a/src/concurrent/qtconcurrentthreadengine.cpp +++ b/src/concurrent/qtconcurrentthreadengine.cpp @@ -196,7 +196,7 @@ void ThreadEngineBase::startBlocking() } catch (QException &e) { handleException(e); } catch (...) { - handleException(QUnhandledException()); + handleException(QUnhandledException(std::current_exception())); } #endif @@ -325,7 +325,7 @@ void ThreadEngineBase::run() // implements QRunnable. } catch (QException &e) { handleException(e); } catch (...) { - handleException(QUnhandledException()); + handleException(QUnhandledException(std::current_exception())); } #endif threadExit(); |