Skip to content
Snippets Groups Projects
Commit 177ec638 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

Job: check of destruction

parent 33b5ea5a
No related branches found
No related tags found
1 merge request!1062GUI: JobModel is refactored
......@@ -65,6 +65,11 @@ JobItem::JobItem()
REFACTORED = true;
}
JobItem::~JobItem()
{
qInfo() << jobName() << "destroyed";
}
QString JobItem::getIdentifier() const
{
return m_identifier;
......
......@@ -42,6 +42,7 @@ public:
static constexpr auto M_TYPE{"JobItem"};
JobItem();
~JobItem();
// job properties
......
......@@ -55,6 +55,7 @@ JobModel::~JobModel()
#ifdef NEW_JOB_MODEL
// jobs should be deleted explicitly, because they are not in tree anymore
qInfo() << "destruction of JobModel";
for(auto* jobItem : m_jobItems)
delete jobItem;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment