FR 3977 then FR 6944 at Barcelona
Dublin → Barcelona → Warsaw Modlin
Timetable, Barcelona time
22:55FR 3977 from Dublin at the gate
17:35FR 6944 to Warsaw Modlin leaves the gate
18 h 40 apart on the timetable, overnight
FR 6944 leaves 18 h 40 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.