| 111 | } |
| 112 | |
| 113 | void ListBoxDataControl::invalidateSelection() |
| 114 | { |
| 115 | if (mParentData != nullptr) |
| 116 | { |
| 117 | size_t currentIndex = mListBox->getIndexSelected(); |
| 118 | DataPtr selection = |
| 119 | currentIndex != MyGUI::ITEM_NONE ? *mListBox->getItemDataAt<DataPtr>(currentIndex) : nullptr; |
| 120 | |
| 121 | if (selection != mParentData->getChildSelected()) |
| 122 | selectListItemByData(mParentData->getChildSelected()); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void ListBoxDataControl::selectListItemByData(DataPtr _data) |
| 127 | { |
nothing calls this directly
no test coverage detected