mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 09:04:48 +00:00
Fix editor and viewer combo boxes in prefs (#8237)
(cherry picked from commit 47e98487838b6c99b2631f0b203abf89e2d739bd)
This commit is contained in:
parent
d36965c55c
commit
247b7f3569
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user