Only pop up warning dialog when leaving settings page if settings have been modified.
Don't pop up warning dialog when saving.