mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in countries list refresh.
This commit is contained in:
@@ -260,6 +260,8 @@ const std::vector<Info> &CountriesInstance::list() {
|
|||||||
|
|
||||||
void CountriesInstance::setList(std::vector<Info> &&infos) {
|
void CountriesInstance::setList(std::vector<Info> &&infos) {
|
||||||
_list = std::move(infos);
|
_list = std::move(infos);
|
||||||
|
_byCode.clear();
|
||||||
|
_byISO2.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
const CountriesInstance::Map &CountriesInstance::byCode() {
|
const CountriesInstance::Map &CountriesInstance::byCode() {
|
||||||
|
Reference in New Issue
Block a user