From a4c4e3fc08395be5fc83b6f36fc1be07dbe5b245 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 19:02:12 +0300 Subject: =?UTF-8?q?fixes=20#3945=20(=D0=9F=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD?= =?UTF-8?q?=D1=8B=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?:=20=D1=81=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D1=8D?= =?UTF-8?q?=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D1=8B=20=D0=BE=D0=BA=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8=20=D0=BE=D1=82=20=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B0=D1=82=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/NewsAggregator/Src/Options.cpp | 2 ++ protocols/NewsAggregator/Src/Services.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'protocols/NewsAggregator/Src') diff --git a/protocols/NewsAggregator/Src/Options.cpp b/protocols/NewsAggregator/Src/Options.cpp index b35585cfaa..c4c98d16ca 100644 --- a/protocols/NewsAggregator/Src/Options.cpp +++ b/protocols/NewsAggregator/Src/Options.cpp @@ -562,6 +562,7 @@ bool CImportFeed::OnApply() MCONTACT hContact = db_add_contact(); Proto_AddToContact(hContact, MODULENAME); + Contact::Readonly(hContact); g_plugin.setWString(hContact, "Nick", text); g_plugin.setWString(hContact, "URL", url); if (siteurl) @@ -771,6 +772,7 @@ bool CFeedEditor::OnApply() hContact = db_add_contact(); Proto_AddToContact(hContact, MODULENAME); g_plugin.setByte(hContact, "CheckState", 1); + Contact::Readonly(hContact); } else hContact = m_hContact; diff --git a/protocols/NewsAggregator/Src/Services.cpp b/protocols/NewsAggregator/Src/Services.cpp index a05231779a..ed4f9e49cd 100644 --- a/protocols/NewsAggregator/Src/Services.cpp +++ b/protocols/NewsAggregator/Src/Services.cpp @@ -37,6 +37,7 @@ int NewsAggrInit(WPARAM, LPARAM) mir_wstrncpy(tszRoot, VARSW(L"%miranda_userdata%\\Avatars\\" _A2W(DEFAULT_AVATARS_FOLDER)), _countof(tszRoot)); for (auto &hContact : Contacts(MODULENAME)) { + Contact::Readonly(hContact); if (!g_plugin.getByte("StartupRetrieve", 1)) g_plugin.setDword(hContact, "LastCheck", (uint32_t)time(0)); g_plugin.setWord(hContact, "Status", ID_STATUS_ONLINE); -- cgit v1.2.3