FR 8578 then FR 5151 at Dublin
Málaga → Dublin → Glasgow
Timetable, Dublin time
11:10FR 8578 from Málaga at the gate
06:20FR 5151 to Glasgow leaves the gate
19 h 10 apart on the timetable, overnight
FR 5151 leaves 19 h 10 after FR 8578 arrives on the timetable: more than half a day, so not a connection we count.