Fixing a bug if the last session display pluginis an invalid name, resolve to default

This commit is contained in:
Sam Gateau 2018-06-29 15:42:19 +02:00
parent a5919ee3fa
commit d543cd0766

View file

@ -2719,7 +2719,7 @@ void Application::initializeDisplayPlugins() {
setDisplayPlugin(defaultDisplayPlugin);
// Now set the desired plugin if it's not the same as the default plugin
if (targetDisplayPlugin != defaultDisplayPlugin) {
if (!targetDisplayPlugin && (targetDisplayPlugin != defaultDisplayPlugin)) {
setDisplayPlugin(targetDisplayPlugin);
}