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