From 0610c77e43eeae135ca0ea14eb5deab3762fe7dc Mon Sep 17 00:00:00 2001 From: George Marques Date: Mon, 18 Jul 2016 12:39:51 -0300 Subject: Add icon for root node in Create Dialog Close #5766 --- tools/editor/create_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/editor') diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp index 210b799f3d..07d1566ab8 100644 --- a/tools/editor/create_dialog.cpp +++ b/tools/editor/create_dialog.cpp @@ -154,6 +154,9 @@ void CreateDialog::_update_search() { TreeItem *root = search_options->create_item(); root->set_text(0,base_type); + if (has_icon(base_type,"EditorIcons")) { + root->set_icon(0,get_icon(base_type,"EditorIcons")); + } List::Element *I=type_list.front(); TreeItem *to_select=NULL; -- cgit v1.2.3