Timeline: confirm on dirty navigation/selection change

Fixes #2520