FR 7958 then W6 2096 at Barcelona
Cork → Barcelona → Krakow
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
19:05W6 2096 to Krakow leaves the gatealso FR 5252
20 h 10 apart on the timetable, overnight
W6 2096 leaves 20 h 10 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.