Fuelling quasars with hot gas