Up to £7m has been pledged for facilities to replace an aging Nottingham leisure centre.
The new centre could be on the same site
City councillors had examined plans to close the 150-year-old Victoria baths in Sneinton because they were too expensive to maintain.
This had met with strong opposition from local residents who feared a loss of leisure services in the area.
The current centre will stay open for another nine months while a new facility in the area is planned.
Councillors said this facility could be on the existing site or a new one nearby.
The authority said improvements to current buildings would have cost £7.5m with additional maintenance issues.
Councillor David Trimble said: "We did a consultation process and we listened to it.
"Victoria Leisure centre is old and tired - the building is 150 years old and you can't keep investing in that forever and it would have cost us a fortune to make no improvement whatsoever.
"What we want to do is take children away from their play stations, take them into a brand new fantastic facility and make them want to come back themselves."
Matt Anderson, organiser of the campaign to keep the baths open, said he welcomed the guaranteed investment in leisure facilities for local people.
"I'm very pleased that we've managed to persuade the council to give us a sum of money to spend on new facilities.
"At the end of the day it's a key victory for us and the fact that they've also committed to keep the leisure centre open while the area committee consider the new proposals and how best that money should be spent, so nothing should take away from that."