Browse Source

Switching selection in drop down list actually works

Marko Pintera 12 years ago
parent
commit
ab342190f5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      BansheeEngine/Source/BsGUIDropDownList.cpp

+ 4 - 0
BansheeEngine/Source/BsGUIDropDownList.cpp

@@ -211,5 +211,9 @@ namespace BansheeEngine
 	{
 	{
 		if(!onSelectionChanged.empty())
 		if(!onSelectionChanged.empty())
 			onSelectionChanged(idx);
 			onSelectionChanged(idx);
+
+		mSelectedIdx = idx;
+
+		markContentAsDirty();
 	}
 	}
 }
 }