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