EC 7154 then LA 5787 at Barcelona
Milan → Barcelona → Prague
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:25LA 5787 to Prague leaves the gate
19 h 10 apart on the timetable, overnight
LA 5787 leaves 19 h 10 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.