diff options
author | Christian Stenger <christian.stenger@qt.io> | 2016-07-08 12:53:57 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2016-07-15 09:18:01 +0000 |
commit | 48b2af5e773a39e8e3a342f1d082ff6bc1a96b54 (patch) | |
tree | f956bf3889a9a6d864bf5518e82bd5b6ea51baef /src/plugins/autotest/autotestplugin.cpp | |
parent | e70adf820ee42578f4a412572bedf3b745492619 (diff) |
AutoTest: Cancel possible running tasks on shutdown
If tasks are running while shutting down we might end up in a crash,
so cancel all tasks and handle possible invalid accesses of the
current running processing.
Change-Id: I69f7cac5f44390e322fa301af6d6794270c95c2a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r-- | src/plugins/autotest/autotestplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp index 05764ab3c25..98b58c0e352 100644 --- a/src/plugins/autotest/autotestplugin.cpp +++ b/src/plugins/autotest/autotestplugin.cpp @@ -154,6 +154,7 @@ void AutotestPlugin::extensionsInitialized() ExtensionSystem::IPlugin::ShutdownFlag AutotestPlugin::aboutToShutdown() { + TestTreeModel::instance()->parser()->aboutToShutdown(); return SynchronousShutdown; } |