Commit 142e8ebe authored by Laurent Montel's avatar Laurent Montel 😁

Use word wrap settings

parent 7ea76656
......@@ -20,6 +20,7 @@
#include "sieveeditorpagewidget.h"
#include "ksieveui/sieveeditorwidget.h"
#include "sieveeditorglobalconfig.h"
#include <kmanagesieve/sievejob.h>
......@@ -88,6 +89,7 @@ void SieveEditorPageWidget::loadScript(const QUrl &url, const QStringList &capab
mCurrentURL = url;
mSieveEditorWidget->setSieveCapabilities(capabilities);
mSieveEditorWidget->setReadOnly(true);
mSieveEditorWidget->wordWrap(SieveEditorGlobalConfig::self()->wrapText());
KManageSieve::SieveJob *job = KManageSieve::SieveJob::get(url);
connect(job, &KManageSieve::SieveJob::result, this, &SieveEditorPageWidget::slotGetResult);
}
......
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