Commit 981225af authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Avoid double-delete on close

parent 25bb9815
......@@ -56,8 +56,8 @@ public:
virtual QUrl file() const = 0;
protected:
ICourse(QObject *parent = nullptr)
: QObject(parent)
ICourse()
: QObject()
{
}
virtual void setSelf(std::shared_ptr<ICourse> course) = 0;
......
......@@ -44,8 +44,8 @@ public:
virtual bool isModified() const = 0;
protected:
IEditableCourse(QObject *parent = nullptr)
: ICourse(parent)
IEditableCourse()
: ICourse()
{
}
};
......
......@@ -97,7 +97,7 @@ void CourseResource::setSelf(std::shared_ptr<ICourse> self)
}
CourseResource::CourseResource(const QUrl &path, IResourceRepository *repository)
: ICourse(repository)
: ICourse()
, d(new CourseResourcePrivate())
{
QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership);
......
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