From 96b26c94eb4779392146e447862d7f21f270f57b Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Tue, 3 Jul 2018 16:59:40 +0200 Subject: [PATCH] Really add safe check for targetDisplayPLugin --- interface/src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index fb7d6a4a0f..1f31aaa6ce 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2722,7 +2722,7 @@ void Application::initializeDisplayPlugins() { setDisplayPlugin(defaultDisplayPlugin); // Now set the desired plugin if it's not the same as the default plugin - if (!targetDisplayPlugin && (targetDisplayPlugin != defaultDisplayPlugin)) { + if (targetDisplayPlugin && (targetDisplayPlugin != defaultDisplayPlugin)) { setDisplayPlugin(targetDisplayPlugin); }