Commit 8695857f authored by Igor Poboiko's avatar Igor Poboiko
Browse files

RichTextComposer::setEnableActions: use RichTextComposerActions::setActionsEnabled

The old code doesn't set the flag richTextEnabled, which results in
some actions being enabled and some being disabled due to checks in
slotUpdateMiscActions.
parent a1b66d2c
Pipeline #21546 passed with stage
in 5 minutes and 39 seconds
...@@ -121,10 +121,7 @@ QVector<QAction *> RichTextComposer::richTextActionList() const ...@@ -121,10 +121,7 @@ QVector<QAction *> RichTextComposer::richTextActionList() const
void RichTextComposer::setEnableActions(bool state) void RichTextComposer::setEnableActions(bool state)
{ {
const QVector<QAction *> richAction = richTextActionList(); d->richTextComposerActions->setActionsEnabled(state);
for (QAction *act : richAction) {
act->setEnabled(state);
}
} }
void RichTextComposer::createActions(KActionCollection *ac) void RichTextComposer::createActions(KActionCollection *ac)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment