LA 5798 then FR 8384 at Barcelona
Lisbon → Barcelona → Budapest
Timetable, Barcelona time
23:55LA 5798 from Lisbon at the gate
12:20FR 8384 to Budapest leaves the gate
12 h 25 apart on the timetable, overnight
FR 8384 leaves 12 h 25 after LA 5798 arrives on the timetable: more than half a day, so not a connection we count.