Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Artikulate
Commits
981225af
Commit
981225af
authored
Jul 12, 2019
by
Andreas Cord-Landwehr
Browse files
Avoid double-delete on close
parent
25bb9815
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/core/icourse.h
View file @
981225af
...
...
@@ -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
;
...
...
src/core/ieditablecourse.h
View file @
981225af
...
...
@@ -44,8 +44,8 @@ public:
virtual
bool
isModified
()
const
=
0
;
protected:
IEditableCourse
(
QObject
*
parent
=
nullptr
)
:
ICourse
(
parent
)
IEditableCourse
()
:
ICourse
()
{
}
};
...
...
src/core/resources/courseresource.cpp
View file @
981225af
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment