fix group parent, add details update by keyboard

This commit is contained in:
thez3ro 2017-08-31 00:52:05 +02:00
parent 1a87e30b95
commit 0e6fedc056
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
5 changed files with 43 additions and 63 deletions

View file

@ -439,10 +439,14 @@ QStringList Group::hierarchy()
{
QStringList hierarchy;
Group* group = this;
while (group->parentGroup()) {
hierarchy << group->name();
Group* parent = m_parent;
hierarchy << group->name();
while (parent) {
group = group->parentGroup();
parent = group->parentGroup();
hierarchy << group->name();
}
return hierarchy;
}