Also, as a general rule, if making separate bookings, better to do plane + train, rather than two flights imho.
Trains usually run at a higher frequency, so if one is delayed, you can usually get another within an hour or so.
DUB offers direct flights to VIE, BTS and PRG. Would that have been a safer alternative?