Fix ordering of locations

There are two lists, one for ranges, and one for
everything else.
This commit is contained in:
Robin Gareus 2023-12-09 01:43:40 +01:00
parent 1de91fa0fb
commit 1da5c7f389
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ LocationUI::location_added (Location* location)
Box_Helpers::BoxList::iterator j = children.begin ();
while (i != loc.end()) {
if (location->flags() != (*i)->flags()) {
if (location->is_range_marker() != (*i)->is_range_marker()) {
/* Skip locations in the session list that aren't of the right type */
++i;
continue;