return false;
//code below is skipped when when ~/.config/LyX is (re)created
- setIconSize(settings.value(icon_key).toSize());
+ QSize icon_size = settings.value(icon_key).toSize();
+ // Check whether session size changed.
+ if (icon_size.width() != d.smallIconSize &&
+ icon_size.width() != d.normalIconSize &&
+ icon_size.width() != d.bigIconSize) {
+ icon_size.setWidth(d.normalIconSize);
+ icon_size.setHeight(d.normalIconSize);
+ }
+ setIconSize(icon_size);
+
#ifdef Q_WS_X11
QPoint pos = settings.value("pos", QPoint(50, 50)).toPoint();
QSize size = settings.value("size", QSize(690, 510)).toSize();
<item row="1" column="1" >
<widget class="QComboBox" name="iconSetCO" >
<property name="toolTip" >
- <string>The icon set to use. Warning: size of icons may be wrong
until you save the preferences, restart LyX and choose
"Normal-sized icons" from the toolbar menu.</string>
+ <string>The icon set to use. Warning: normal size of icons may be
wrong until you save the preferences and restart LyX.</string>
</property>
</widget>
</item>