MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / HandleCargoWaitingClick

Method HandleCargoWaitingClick

src/station_gui.cpp:1924–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1922 */
1923 template <class Tid>
1924 void HandleCargoWaitingClick(CargoDataEntry *filter, Tid next)
1925 {
1926 if (filter->Retrieve(next) != nullptr) {
1927 filter->Remove(next);
1928 } else {
1929 filter->InsertOrRetrieve(next);
1930 }
1931 }
1932
1933 /**
1934 * Handle a click on a specific row in the cargo view.

Callers 1

OnClickMethod · 0.95

Calls 4

SetWidgetDirtyMethod · 0.80
RetrieveMethod · 0.45
RemoveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected