mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix a small glitch
When choosing a code language that has dialects in the languages combo box, the dialects combo gets activated also when minted is in use. However, minted does not support the concept of dialects and the combo should not be enabled. This is harmless because the dialects are simply ignored and the dialects status is restored after apply, but it may fool the user in thinking that a dialect can be actually selected. So, always disable it with minted.
This commit is contained in:
parent
18fb9cd7f9
commit
aae04d25b9
@ -433,7 +433,8 @@ void GuiListings::on_languageCO_currentIndexChanged(int index)
|
||||
}
|
||||
}
|
||||
dialectCO->setCurrentIndex(default_dialect);
|
||||
dialectCO->setEnabled(dialectCO->count() > 1);
|
||||
dialectCO->setEnabled(dialectCO->count() > 1
|
||||
&& !buffer().params().use_minted);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user