mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed unused static variable from CountryInput.
This commit is contained in:
parent
d4c0ac5e4a
commit
de3b1ff9ae
1 changed files with 2 additions and 8 deletions
|
@ -18,12 +18,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "styles/style_boxes.h"
|
#include "styles/style_boxes.h"
|
||||||
#include "styles/style_intro.h"
|
#include "styles/style_intro.h"
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
QString LastValidISO;
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
CountryInput::CountryInput(QWidget *parent, const style::InputField &st)
|
CountryInput::CountryInput(QWidget *parent, const style::InputField &st)
|
||||||
: RpWidget(parent)
|
: RpWidget(parent)
|
||||||
, _st(st)
|
, _st(st)
|
||||||
|
@ -168,7 +162,7 @@ void CountryInput::onChooseCode(const QString &code) {
|
||||||
const auto i = byCode.constFind(code);
|
const auto i = byCode.constFind(code);
|
||||||
if (i != byCode.cend()) {
|
if (i != byCode.cend()) {
|
||||||
const auto info = *i;
|
const auto info = *i;
|
||||||
_chosenIso = LastValidISO = info->iso2;
|
_chosenIso = info->iso2;
|
||||||
setText(info->name);
|
setText(info->name);
|
||||||
} else {
|
} else {
|
||||||
setText(tr::lng_bad_country_code(tr::now));
|
setText(tr::lng_bad_country_code(tr::now));
|
||||||
|
@ -195,7 +189,7 @@ bool CountryInput::chooseCountry(const QString &iso) {
|
||||||
void CountryInput::chooseCountry(
|
void CountryInput::chooseCountry(
|
||||||
not_null<const Countries::Info*> info,
|
not_null<const Countries::Info*> info,
|
||||||
int codeIndex) {
|
int codeIndex) {
|
||||||
_chosenIso = LastValidISO = info->iso2;
|
_chosenIso = info->iso2;
|
||||||
setText(info->name);
|
setText(info->name);
|
||||||
_codeChanged.fire_copy(info->codes[codeIndex].callingCode);
|
_codeChanged.fire_copy(info->codes[codeIndex].callingCode);
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Reference in a new issue