FR 6266 then FR 1421 at Barcelona
Edinburgh → Barcelona → Budapest
Timetable, Barcelona time
16:55FR 6266 from Edinburgh at the gate
10:10FR 1421 to Budapest leaves the gate
17 h 15 apart on the timetable, overnight
FR 1421 leaves 17 h 15 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.