FR 3040 then FR 6394 at Barcelona
Prague → Barcelona → Dublin
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
19:30FR 6394 to Dublin leaves the gate
22 h 15 apart on the timetable, overnight
FR 6394 leaves 22 h 15 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.