MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / clearSelection

Method clearSelection

forms/multilistbox.cpp:500–512  ·  view source on GitHub ↗

* Deselect all selected items. */

Source from the content-addressed store, hash-verified

498 * Deselect all selected items.
499 */
500void MultilistBox::clearSelection()
501{
502 if (funcHandleSelection)
503 {
504 for (auto &c : selectedSet)
505 {
506 funcHandleSelection(nullptr, c, false);
507 }
508 }
509
510 selectedSet.clear();
511 setDirty();
512}
513
514/**
515 * Get controls that have been selected.

Callers 3

initMethod · 0.80
updateLocationMethod · 0.80
addVehiclesToListMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected