FR 3976 then FR 5151 at Dublin
Barcelona → Dublin → Glasgow
Timetable, Dublin time
23:30FR 3976 from Barcelona at the gate
21:15FR 5151 to Glasgow leaves the gate
21 h 45 apart on the timetable, overnight
FR 5151 leaves 21 h 45 after FR 3976 arrives on the timetable: more than half a day, so not a connection we count.