From a2776af67258a2016777843aae1156af339e72e8 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Mon, 13 Mar 2017 15:58:59 +0100 Subject: [PATCH] WindowDialog: Fix crash when running as ProjectManager Fixes a bug introduced in #7970 --- scene/gui/dialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index 89008b56bf7c..a58e62f06179 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -205,11 +205,11 @@ void WindowDialog::_notification(int p_what) { } break; #ifdef TOOLS_ENABLED case NOTIFICATION_POST_POPUP: { - if (get_tree() && get_tree()->is_editor_hint()) + if (get_tree() && get_tree()->is_editor_hint() && EditorNode::get_singleton()) EditorNode::get_singleton()->dim_editor(true); } break; case NOTIFICATION_POPUP_HIDE: { - if (get_tree() && get_tree()->is_editor_hint()) + if (get_tree() && get_tree()->is_editor_hint() && EditorNode::get_singleton()) EditorNode::get_singleton()->dim_editor(false); } break; #endif