mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix crash when removing last converter (bug 8178)
This commit is contained in:
parent
0695fd54d8
commit
026f53f41c
@ -1695,10 +1695,16 @@ void PrefConverters::updateButtons()
|
||||
bool const valid = !(converterED->text().isEmpty()
|
||||
|| from.name() == to.name());
|
||||
|
||||
string old_command;
|
||||
string old_flag;
|
||||
|
||||
if (convertersLW->count() > 0) {
|
||||
int const cnr = convertersLW->currentItem()->type();
|
||||
Converter const & c = form_->converters().get(cnr);
|
||||
string const old_command = c.command;
|
||||
string const old_flag = c.flags;
|
||||
old_command = c.command;
|
||||
old_flag = c.flags;
|
||||
}
|
||||
|
||||
string const new_command = fromqstr(converterED->text());
|
||||
string const new_flag = fromqstr(converterFlagED->text());
|
||||
|
||||
|
@ -131,7 +131,7 @@ What's new
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
- Fixed crash when modifying or pasting an equation label and there
|
||||
- Fix crash when modifying or pasting an equation label and there
|
||||
are references to that label in math (bug 8095).
|
||||
|
||||
- Fix crash when clicking away in the same math inset just after hitting '\'
|
||||
@ -140,6 +140,8 @@ What's new
|
||||
- Fix crash when dissolving a math macro whose first argument is another
|
||||
parameterless macro (bug 8105).
|
||||
|
||||
- Fix crash when removing all converters in preferences (bug 8178).
|
||||
|
||||
- Update the current view after dispatching a command through the lyxserver.
|
||||
The missing screen update could cause either a failure in executing the
|
||||
command or could even crash LyX (bugs 6871 and 8119).
|
||||
|
Loading…
Reference in New Issue
Block a user