Browse Source

Gui Editor Order GuiControlProfiles

Peter Robinson 1 year ago
parent
commit
0741661c04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/gui/editor/guiInspectorTypes.cc

+ 1 - 1
engine/source/gui/editor/guiInspectorTypes.cc

@@ -205,7 +205,6 @@ GuiControl* GuiInspectorTypeGuiProfile::constructEditControl(S32 width)
       }
    }
 
-   retCtrl->getList()->sortByText();
    for(U32 j = 0; j < (U32)entries.size(); j++)
    {
 		if(entries[j] != NULL)
@@ -213,6 +212,7 @@ GuiControl* GuiInspectorTypeGuiProfile::constructEditControl(S32 width)
 			retCtrl->getList()->addItem(entries[j]);
 		}
    }
+   retCtrl->getList()->sortByText();
    retCtrl->setField("text", getData());
 
    return retCtrl;