FR 2494 then FR 4585 at Barcelona
Palma de Mallorca → Barcelona → Porto
Timetable, Barcelona time
18:45FR 2494 from Palma de Mallorca at the gate
09:25FR 4585 to Porto leaves the gate
14 h 40 apart on the timetable, overnight
FR 4585 leaves 14 h 40 after FR 2494 arrives on the timetable: more than half a day, so not a connection we count.