Confirm before restoring default settings

Fixes #1145.