FR 7958 then W6 2378 at Barcelona
Cork → Barcelona → Budapest
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
20:50W6 2378 to Budapest leaves the gate
21 h 55 apart on the timetable, overnight
W6 2378 leaves 21 h 55 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.