From ab53bb4692c05cff1f1842dbbea887876ef550c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 9 Feb 2024 12:14:21 +0300 Subject: =?UTF-8?q?fixes=20#4180=20(CurencyRates:=20=D0=BF=D0=B0=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=B9=20=D0=B2=D0=B0=D0=BB=D1=8E=D1=82=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=BF=D0=B0=D1=80=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/CurrencyRates/src/Options.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/CurrencyRates/src/Options.cpp b/protocols/CurrencyRates/src/Options.cpp index 796c871795..785102f0b9 100644 --- a/protocols/CurrencyRates/src/Options.cpp +++ b/protocols/CurrencyRates/src/Options.cpp @@ -45,13 +45,15 @@ public: cmbFrom.AddString(TranslateW(sName), LPARAM(&it)); cmbTo.AddString(TranslateW(sName), LPARAM(&it)); } + + onSelChange_From(0); return true; } bool OnApply() override { auto *c1 = (CCurrencyRate*)cmbFrom.GetCurData(); - auto *c2 = (CCurrencyRate *)cmbTo.GetCurData(); + auto *c2 = (CCurrencyRate*)cmbTo.GetCurData(); if (c1 && c2) { ri.first = *c1; ri.second = *c2; -- cgit v1.2.3