Commit 59314fc6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Make sure the QuickDialog's localisation context has a domain


(cherry picked from commit 2e6b976d)
parent ab17ce2b
Pipeline #238026 passed with stage
in 56 seconds
......@@ -24,7 +24,9 @@ QuickDialog::~QuickDialog() noexcept
void QuickDialog::create(const QString &file, const QVariantMap &props)
{
auto engine = new QQmlApplicationEngine(this);
engine->rootContext()->setContextObject(new KLocalizedContext(engine));
auto context = new KLocalizedContext(engine);
context->setTranslationDomain(TRANSLATION_DOMAIN);
engine->rootContext()->setContextObject(context);
engine->setInitialProperties(props);
engine->load(file);
......
Supports Markdown
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