Commit f768a4ea authored by Laurent Montel's avatar Laurent Montel 😁

Enable find action in html page too

parent bbffa5c9
......@@ -309,7 +309,7 @@ void SieveEditorMainWindow::slotUpdateActions()
const bool editActionEnabled = (hasPage && mMainWidget->sieveEditorMainWidget()->isTextEditor());
const bool hasActionInHtmlModeToo = (hasPage && mMainWidget->sieveEditorMainWidget()->pageMode() == KSieveUi::SieveEditorWidget::TextMode);
mGoToLine->setEnabled(editActionEnabled);
mFindAction->setEnabled(editActionEnabled);
mFindAction->setEnabled(hasActionInHtmlModeToo);
mReplaceAction->setEnabled(editActionEnabled);
mUndoAction->setEnabled(editActionEnabled && mMainWidget->sieveEditorMainWidget()->isUndoAvailable());
mRedoAction->setEnabled(editActionEnabled && mMainWidget->sieveEditorMainWidget()->isRedoAvailable());
......
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