FR 1024 then FR 5772 at Dublin
Budapest → Dublin → Glasgow
Timetable, Dublin time
13:55FR 1024 from Budapest at the gate
12:35FR 5772 to Glasgow leaves the gate
22 h 40 apart on the timetable, overnight
FR 5772 leaves 22 h 40 after FR 1024 arrives on the timetable: more than half a day, so not a connection we count.