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