Ticket #15907: Time_fixForCountriesWithoutTimezoneWithOneSubitem.patch

File Time_fixForCountriesWithoutTimezoneWithOneSubitem.patch, 724 bytes (added by Morgul, 5 years ago)

Patch to cleanly fix this issue

  • src/preferences/time/ZoneView.cpp

    diff --git a/src/preferences/time/ZoneView.cpp b/src/preferences/time/ZoneView.cpp
    index 2b85e67322..63750486db 100644
    a b TimeZoneView::_BuildZoneMenu()  
    441441                zoneIter->second->SetCountry(currentItem->HasCountry()
    442442                    ? new(std::nothrow) BCountry(currentItem->Country())
    443443                    : NULL);
    444                 zoneIter->second->SetTimeZone(currentItem->HasTimeZone()
    445                     ? new(std::nothrow) BTimeZone(currentItem->TimeZone())
    446                     : NULL);
     444                if (currentItem->HasTimeZone())
     445                    zoneIter->second->SetTimeZone(new(std::nothrow) BTimeZone(currentItem->TimeZone()));
    447446                zoneIter->second->SetOutlineLevel(1);
    448447                delete currentItem;
    449448            }