FR 7958 then QR 3516 at Barcelona
Cork → Barcelona → Málaga
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
19:45QR 3516 to Málaga leaves the gate
20 h 50 apart on the timetable, overnight
QR 3516 leaves 20 h 50 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.