Le 21/03/2017 à 00:04, Enrico Forestieri a écrit :
commit 16d5c49b383841826d1bc563e2d392e12e497ed8
Author: Enrico Forestieri <for...@lyx.org>
Date: Mon Mar 20 23:59:16 2017 +0100
Further amendment to 72a488d7
Rephrase positively the check box for the output of en- and em-dashes
and disable it when using non-TeX fonts. The state of the check box
is remembered, so that toggling the non-TeX fonts check box does not
cause information loss.
---
...
+ connect(fontModule->dashesCB, SIGNAL(toggled(bool)),
+ this, SLOT(dashesToggled(bool)));
...
+void GuiDocument::dashesToggled(bool state)
+{
+ if (!fontModule->osFontsCB->isChecked())
+ fontModule->dashesCB->setChecked(state);
+}
Thanks. I am not sure to understand, is the above not redundant? When
osFontsCB is not checked, toggling dashesCB already changes its state.