Commit bdb26e62 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We need to convert it when we insert snippet not when we create it

parent 27a23da0
......@@ -19,7 +19,6 @@
#include "snippetcustomfileattachmentnamewidget.h"
#include <MessageComposer/ConvertSnippetVariableMenu>
#include <MessageComposer/ConvertSnippetVariablesJob>
#include <QHBoxLayout>
#include <KLocalizedString>
#include <QLineEdit>
......@@ -52,7 +51,7 @@ SnippetCustomFileAttachmentNameWidget::~SnippetCustomFileAttachmentNameWidget()
void SnippetCustomFileAttachmentNameWidget::insertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType variable)
{
mLineEdit->insert(MessageComposer::ConvertSnippetVariablesJob::convertVariables(nullptr, MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(variable)));
mLineEdit->insert(MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(variable));
}
QString SnippetCustomFileAttachmentNameWidget::result() 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