Commit 95538f16 authored by Laurent Montel's avatar Laurent Montel 😁

Avoid problem with warning widget

parent bbcd1289
...@@ -618,11 +618,11 @@ void SieveEditorWidget::slotSwitchMode() ...@@ -618,11 +618,11 @@ void SieveEditorWidget::slotSwitchMode()
if (result) { if (result) {
QString error; QString error;
mGraphicalModeWidget->loadScript(doc, error); mGraphicalModeWidget->loadScript(doc, error);
mTextModeWidget->hideEditorWarning();
if (!error.isEmpty()) { if (!error.isEmpty()) {
mTextModeWidget->setParsingEditorWarningError(mTextModeWidget->currentscript(), error); mTextModeWidget->setParsingEditorWarningError(mTextModeWidget->currentscript(), error);
mTextModeWidget->showParsingEditorWarning(); mTextModeWidget->showParsingEditorWarning();
} else { } else {
mTextModeWidget->hideEditorWarning();
changeMode(GraphicMode); changeMode(GraphicMode);
} }
} else { } else {
......
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