Fix editor and viewer combo boxes in prefs (#8237)

(cherry picked from commit 47e98487838b6c99b2631f0b203abf89e2d739bd)
This commit is contained in:
Scott Kostyshak 2013-01-11 04:51:46 -05:00
parent d36965c55c
commit 247b7f3569

View File

@ -1142,19 +1142,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;
}