Fix #46 - change preferences dialog to modal.