mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix incorrect tab placement in updateNodeList
This commit is contained in:
parent
88b0c3a68c
commit
afc8640583
1 changed files with 2 additions and 2 deletions
|
@ -81,10 +81,10 @@ void Hy3TabBar::updateNodeList(std::list<Hy3Node*>& nodes) {
|
|||
if (entry == this->entries.end() || *entry != **node) {
|
||||
auto moved = std::find(removed_entries.begin(), removed_entries.end(), **node);
|
||||
if (moved != removed_entries.end()) {
|
||||
this->entries.splice(std::next(entry), removed_entries, moved);
|
||||
this->entries.splice(entry, removed_entries, moved);
|
||||
entry = moved;
|
||||
} else {
|
||||
entry = this->entries.emplace(std::next(entry), *this, **node);
|
||||
entry = this->entries.emplace(entry, *this, **node);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue