Skip to content

Commit ba10d96

Browse files
committed
Remove unnecessary break
1 parent 0d1efd6 commit ba10d96

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Editor/EditorManager.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,7 @@ namespace RTEGUI {
294294
for (GUIControl *control : *collectionBox->GetChildren()) {
295295
if (control->GetID() != "COLLECTIONBOX") { m_ControlsInCollectionBoxList->AddItem(control->GetName()); }
296296
// Check if this is selected in the editor, and if so, select it in the list too
297-
//if (collectionBox == s_SelectionInfo.GetControl()) { m_ControlsInCollectionBoxList->SetSelectedIndex(m_CollectionBoxList->GetItemList()->size() - 1); }
298-
if (collectionBox == s_SelectionInfo.GetControl()) {
299-
m_ControlsInCollectionBoxList->SetSelectedIndex(-1);
300-
break;
301-
}
297+
if (collectionBox == s_SelectionInfo.GetControl()) { m_ControlsInCollectionBoxList->SetSelectedIndex(-1); }
302298
}
303299
}
304300

0 commit comments

Comments
 (0)