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

Avoid problem with warning widget

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