diff --git a/src/app/GUI/fontswidget.cpp b/src/app/GUI/fontswidget.cpp index 57e2e9193..2c61e929b 100644 --- a/src/app/GUI/fontswidget.cpp +++ b/src/app/GUI/fontswidget.cpp @@ -403,8 +403,8 @@ void FontsWidget::setBoxTarget(TextBox * const target) { mBoxTarget.assign(target); if (target) { - connect(this, &FontsWidget::fontSizeChanged, - target, [target](const qreal &value) { + mBoxTarget << connect(this, &FontsWidget::fontSizeChanged, + target, [target](const qreal &value) { target->setFontSize(value); Document::sInstance->actionFinished(); });