]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlPrefs.C
fix bug 895
[lyx.git] / src / frontends / controllers / ControlPrefs.C
index 17a2538c0a960c7e0e0cf5797e35a1dc7d37e3e4..7addfccd0616d1ed5f76ec21c8c8a96ddcb7f748 100644 (file)
@@ -132,9 +132,14 @@ docstring const ControlPrefs::browsekbmap(docstring const & file) const
 
 docstring const ControlPrefs::browsedict(docstring const & file) const
 {
-       return browseFile(file,
-                         _("Choose personal dictionary"),
-                         FileFilterList(_("*.ispell")));
+       if (lyxrc.use_spell_lib)
+               return browseFile(file,
+                                 _("Choose personal dictionary"),
+                                 FileFilterList(_("*.pws")));
+       else
+               return browseFile(file,
+                                 _("Choose personal dictionary"),
+                                 FileFilterList(_("*.ispell")));
 }