prefs: clear selection after closing settings dialog