Skip to content

Commit

Permalink
Adding debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
louib authored and louib committed Aug 5, 2017
1 parent c1a130c commit 3d45402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ void Group::merge(const Group* other)
continue;
}

qDebug("New entry %s detected. Creating it.", qPrintable(entry->title()));
// This entry does not exist at all. Create it.
entry->clone(Entry::CloneNoFlags)->setGroup(this);

Expand All @@ -669,6 +670,7 @@ void Group::merge(const Group* other)
if (findChildByName(group->name())) {
findChildByName(group->name())->merge(group);
} else {
qDebug("New group %s detected. Creating it.", qPrintable(group->name()));
Group* newGroup = group->clone(Entry::CloneNoFlags, true);
newGroup->setParent(this);
newGroup->merge(group);
Expand Down

0 comments on commit 3d45402

Please sign in to comment.