IB 535 then FR 1798 at Lisbon
Madrid → Lisbon → Toulouse
Timetable, Lisbon time
18:05IB 535 from Madrid at the gate
15:30FR 1798 to Toulouse leaves the gate
21 h 25 apart on the timetable, overnight
FR 1798 leaves 21 h 25 after IB 535 arrives on the timetable: more than half a day, so not a connection we count.