]> git.lyx.org Git - lyx.git/commitdiff
Fix editor and viewer combo boxes in prefs (#8237)
authorScott Kostyshak <skostysh@lyx.org>
Fri, 11 Jan 2013 09:51:46 +0000 (04:51 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 12 Jan 2013 06:13:58 +0000 (01:13 -0500)
src/LyXRC.cpp

index 52197c2ab6cbe3aa2a050f352719e57ac1ad220d..6dba894ef7107cb885aad4077adfbeee1dc84306 100644 (file)
@@ -1143,19 +1143,15 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
                }
                case RC_VIEWER_ALTERNATIVES:  {
                        string format, command;
-                       if (lexrc.next())
-                               format = lexrc.getString();
-                       if (lexrc.eatLine())
-                               command = lexrc.getString();
+                       lexrc >> format;
+                       lexrc >> command;
                        viewer_alternatives[format].insert(command);
                        break;
                }
                case RC_EDITOR_ALTERNATIVES:  {
                        string format, command;
-                       if (lexrc.next())
-                               format = lexrc.getString();
-                       if (lexrc.eatLine())
-                               command = lexrc.getString();
+                       lexrc >> format;
+                       lexrc >> command;
                        editor_alternatives[format].insert(command);
                        break;
                }