diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-14 20:51:35 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-11-14 20:51:35 +0000 |
commit | 602b5649c01971b1289b63690bd66743f3f9387c (patch) | |
tree | fd3fbb62cb291024e60ca67ce59b01caf5da8aab /plugins/NewsAggregator/Src/Services.cpp | |
parent | 81483e839d08683e35b74f42b2c4081c8101547c (diff) |
minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10990 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Services.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Services.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp index 104730e4eb..c9f4fea07b 100644 --- a/plugins/NewsAggregator/Src/Services.cpp +++ b/plugins/NewsAggregator/Src/Services.cpp @@ -232,7 +232,7 @@ INT_PTR NewsAggrRecvMessage(WPARAM, LPARAM lParam) return 0;
}
-void UpdateMenu(BOOL State)
+void UpdateMenu(bool State)
{
CLISTMENUITEM mi = { sizeof(mi) };
@@ -254,7 +254,7 @@ void UpdateMenu(BOOL State) // update the newsaggregator auto-update menu item when click on it
INT_PTR EnableDisable(WPARAM, LPARAM)
{
- UpdateMenu(db_get_b(NULL, MODULE, "AutoUpdate", 1));
+ UpdateMenu(db_get_b(NULL, MODULE, "AutoUpdate", 1) != 0);
NewsAggrSetStatus(db_get_b(NULL, MODULE, "AutoUpdate", 1) ? ID_STATUS_ONLINE : ID_STATUS_OFFLINE, 0);
return 0;
}
|