FR 3929 then FR 3049 at Barcelona
Trieste → Barcelona → Krakow
Timetable, Barcelona time
17:05FR 3929 from Trieste at the gate
05:45FR 3049 to Krakow leaves the gate
12 h 40 apart on the timetable, overnight
FR 3049 leaves 12 h 40 after FR 3929 arrives on the timetable: more than half a day, so not a connection we count.