FR 1026 then FR 1978 at Dublin
Budapest → Dublin → Lodz
Timetable, Dublin time
10:05FR 1026 from Budapest at the gate
09:15FR 1978 to Lodz leaves the gate
23 h 10 apart on the timetable, overnight
FR 1978 leaves 23 h 10 after FR 1026 arrives on the timetable: more than half a day, so not a connection we count.