Commit 9d5af6c0 authored by Laurent Montel's avatar Laurent Montel 😁

Be sure that we call action when editor is visible

parent e59826ef
......@@ -256,22 +256,34 @@ void SieveEditorTextModeWidget::replace()
void SieveEditorTextModeWidget::undo()
{
mTextEdit->undo();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
mTextEdit->undo();
}
}
void SieveEditorTextModeWidget::redo()
{
mTextEdit->redo();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
mTextEdit->redo();
}
}
void SieveEditorTextModeWidget::paste()
{
mTextEdit->paste();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
mTextEdit->paste();
}
}
void SieveEditorTextModeWidget::cut()
{
mTextEdit->cut();
QWidget *w = mTabWidget->currentWidget();
if (w == mTextEdit) {
mTextEdit->cut();
}
}
void SieveEditorTextModeWidget::copy()
......
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