]> git.lyx.org Git - lyx.git/commitdiff
fix bug 895
authorUwe Stöhr <uwestoehr@web.de>
Wed, 31 Jan 2007 20:41:28 +0000 (20:41 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 31 Jan 2007 20:41:28 +0000 (20:41 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=895

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16992 a592a061-630c-0410-9148-cb99ea01b6c8

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")));
 }