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

Fix enable/disable action

parent 6c046e1c
......@@ -285,12 +285,20 @@ void SieveEditorTextModeWidget::selectAll()
bool SieveEditorTextModeWidget::isUndoAvailable() const
{
return mTextEdit->document()->isUndoAvailable();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
return mTextEdit->document()->isUndoAvailable();
}
return false;
}
bool SieveEditorTextModeWidget::isRedoAvailable() const
{
return mTextEdit->document()->isRedoAvailable();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
return mTextEdit->document()->isRedoAvailable();
}
return false;
}
bool SieveEditorTextModeWidget::hasSelection() const
......
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