Commit 7725adb1 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Explicitly set CppOwnership for Unit objects

parent 5016c057
......@@ -27,6 +27,7 @@
#include <QSignalMapper>
#include <QStringList>
#include <QUuid>
#include <QQmlEngine>
#include "artikulate_debug.h"
#include <KLocalizedString>
......@@ -37,6 +38,7 @@ Unit::Unit(QObject *parent)
, m_course(nullptr)
, m_phraseSignalMapper(new QSignalMapper(this))
{
QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership);
}
Unit::~Unit()
......
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