+* open lyx, create a new document, enter a few chars, quit. Lyx does not
+ ask if you want to save the file.
+
+* Change Tools->Preferences->User interface->User interface to something like
+ "kornel.default.ui"; save prefs; exit LyX; restart LyX; => crash;
+ in the preferences file, there is an entry \bind_file "/Something/kornel.default"
+
+ In QPrefsDialog.C:1736, function PrefUserInterface::select_ui() calls
+ form_->controller().browseUI(qstring_to_ucs4(uiFileED->text())))
+ which in turn calls
+ ControlPrefs.C:118
+ browseLibFile(lyx::from_ascii("ui"), file, lyx::from_ascii("ui"),
+ _("Choose UI file"), FileFilterList(_("LyX UI files (*.ui)")));
+ In this function, the extension is removed, because it is the default ("ui" in
+ this case). This behaviour applies to
+ ControlPrefs::browsebind, ControlPrefs::browseUI
+ ControlPrefs::browsekbmap, ControlPrefs::browsedict
+ Setting the default extension here to something invalid, is a hack, but works.
+ (Invalid may be e.g. "*")
+