diff --git a/src/composer-ng/richtextcomposer.cpp b/src/composer-ng/richtextcomposer.cpp index 5923ffc36c091af93b87a40cffd7f716877c0cf2..79701f8f4e7f10864f6728a4f7d30c7083a27695 100644 --- a/src/composer-ng/richtextcomposer.cpp +++ b/src/composer-ng/richtextcomposer.cpp @@ -121,10 +121,7 @@ QVector RichTextComposer::richTextActionList() const void RichTextComposer::setEnableActions(bool state) { - const QVector richAction = richTextActionList(); - for (QAction *act : richAction) { - act->setEnabled(state); - } + d->richTextComposerActions->setActionsEnabled(state); } void RichTextComposer::createActions(KActionCollection *ac)