Time: Fix flattening of countries with one subitem and no timezone on the parent.
Fixes #15907. Change-Id: I10d81ca92539b3430607c10ebaa9fe7f1080ef0b Reviewed-on: https://review.haiku-os.org/c/haiku/+/2517 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
6f9f7e02a8
commit
ffbe5ecde2
@ -441,9 +441,10 @@ TimeZoneView::_BuildZoneMenu()
|
||||
zoneIter->second->SetCountry(currentItem->HasCountry()
|
||||
? new(std::nothrow) BCountry(currentItem->Country())
|
||||
: NULL);
|
||||
zoneIter->second->SetTimeZone(currentItem->HasTimeZone()
|
||||
? new(std::nothrow) BTimeZone(currentItem->TimeZone())
|
||||
: NULL);
|
||||
if (currentItem->HasTimeZone()) {
|
||||
zoneIter->second->SetTimeZone(new(std::nothrow)
|
||||
BTimeZone(currentItem->TimeZone()));
|
||||
}
|
||||
zoneIter->second->SetOutlineLevel(1);
|
||||
delete currentItem;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user