BA 791 then BA 1452 at Heathrow
Göteborg → London → Edinburgh
Timetable, London time
13:55BA 791 from Göteborg at the gate
13:45BA 1452 to Edinburgh leaves the gate
23 h 50 apart on the timetable, overnight
BA 1452 leaves 23 h 50 after BA 791 arrives on the timetable: more than half a day, so not a connection we count.