diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-01-13 16:12:28 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-01-20 10:39:28 +0000 |
commit | 392b063fe8c4cf49d225c1327ff38cd8f3c386dc (patch) | |
tree | 96dd3fb146d0469bb2326b9ddf9c6b84e2f1cd75 /src/app | |
parent | 0334b6e491a3688f2455e075595afde87b8f76af (diff) | |
download | qt-creator-392b063fe8c4cf49d225c1327ff38cd8f3c386dc.tar.gz |
Guard against crashing plugins
If a plugin crashes, ask the user if that plugin should be disabled.
For this track which plugin currently is changing its state. Remove that
information if the state change was successful.
At startup check if there is a plugin for which we wrote, but not
removed that information.
This is especially interesting if the user installed 3rdparty plugins.
Change-Id: I5729aa5c786b653d5bd53304f4fbeaca35ec9e71
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index a8da6f67be..59ad381b83 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -680,6 +680,7 @@ int main(int argc, char **argv) } } + PluginManager::checkForProblematicPlugins(); PluginManager::loadPlugins(); if (coreplugin->hasError()) { displayError(msgCoreLoadFailure(coreplugin->errorString())); |