void CombatSetupWnd::PlaceableShipSelected_(const GG::ListBox::SelectionSet& sels) { assert(sels.size() <= 1u); if (sels.empty()) { PlaceableShipSelected(0); UpdatePlacementIndicators(0); } else { GG::ListBox::Row* row = **sels.begin(); ShipRow* ship_row = boost::polymorphic_downcast<ShipRow*>(row); PlaceableShipSelected(const_cast<Ship*>(ship_row->m_ship)); UpdatePlacementIndicators(ship_row->m_ship); } }
void ServerConnectWnd::ServerSelected(const GG::ListBox::SelectionSet& selections) { if (!selections.empty()) *m_IP_address_edit << ""; EnableDisableControls(); }