FR 4586 then FR 3049 at Barcelona
Porto → Barcelona → Krakow
Timetable, Barcelona time
22:20FR 4586 from Porto at the gate
17:55FR 3049 to Krakow leaves the gate
19 h 35 apart on the timetable, overnight
FR 3049 leaves 19 h 35 after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.