Skip to content

Commit

Permalink
WindowDialog: Fix crash when running as ProjectManager
Browse files Browse the repository at this point in the history
Fixes a bug introduced in godotengine#7970
  • Loading branch information
27thLiz committed Mar 13, 2017
1 parent 9080232 commit a2776af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/gui/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2776af

Please sign in to comment.