summaryrefslogtreecommitdiffstats
path: root/framework/src/frameworkplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/frameworkplugin.cpp')
-rw-r--r--framework/src/frameworkplugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/frameworkplugin.cpp b/framework/src/frameworkplugin.cpp
index 1e1a169e..c4f7e85d 100644
--- a/framework/src/frameworkplugin.cpp
+++ b/framework/src/frameworkplugin.cpp
@@ -60,7 +60,9 @@ static QObject *keyring_singletontype_provider(QQmlEngine *engine, QJSEngine *sc
60{ 60{
61 Q_UNUSED(engine) 61 Q_UNUSED(engine)
62 Q_UNUSED(scriptEngine) 62 Q_UNUSED(scriptEngine)
63 return new Kube::Keyring; 63 auto instance = Kube::Keyring::instance();
64 QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
65 return instance;
64} 66}
65 67
66void FrameworkPlugin::registerTypes (const char *uri) 68void FrameworkPlugin::registerTypes (const char *uri)