FR 3977 then FR 1421 at Barcelona
Dublin → Barcelona → Budapest
Timetable, Barcelona time
21:10FR 3977 from Dublin at the gate
14:30FR 1421 to Budapest leaves the gate
17 h 20 apart on the timetable, overnight
FR 1421 leaves 17 h 20 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.