Fixup MacOS compiler error

.. last commit broke MacOS build and also left an errant debug
   statement in there for good measure
This commit is contained in:
Mark Liversedge
2023-05-26 13:23:04 +01:00
parent c97efc1e49
commit 8a5bbc276f

View File

@@ -1547,15 +1547,16 @@ ColorsPage::applyThemeIndex(int index)
void
ColorsPage::resetClicked()
{
fprintf(stderr, "reset appearance settings!\n"); fflush(stderr);
AppearanceSettings defaults = GSettings::defaultAppearanceSettings();
def->setCurrentFont(QFont(defaults.fontfamily));
fontscale->setValue(defaults.fontscaleindex);
lineWidth->setValue(defaults.linewidth);
antiAliased->setChecked(defaults.antialias);
#ifndef Q_OS_MAC // they do scrollbars nicely
rideHead->setChecked(defaults.head);
rideScroll->setChecked(defaults.scrollbar);
#endif
applyThemeIndex(defaults.theme);
}