Do not ask user for confirmation if there are no unsaved changes