diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-08 18:10:01 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-08 18:10:01 +0000 |
commit | 82ee92ab91e97f986ebafbee993bf20ff39bde12 (patch) | |
tree | 3353f33b8ba5f83d6e871856f1ddb4b8849fda17 /plugins/NewsAggregator/Src/Update.cpp | |
parent | 3a2d344affe7ba8fee7bf97f90d402c1580b82a5 (diff) |
fixed checking news manually
git-svn-id: http://svn.miranda-ng.org/main/trunk@3021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Update.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp index c0b42eb759..2ff5b0a071 100644 --- a/plugins/NewsAggregator/Src/Update.cpp +++ b/plugins/NewsAggregator/Src/Update.cpp @@ -39,7 +39,7 @@ VOID CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) if (DBGetContactSettingDword(hContact, MODULE, "UpdateTime", 60))
{
double diff = difftime(time(NULL), DBGetContactSettingDword(hContact, MODULE, "LastCheck", 0));
- if (diff >= DBGetContactSettingDword(hContact, MODULE, "UpdateTime", 60) * 60)
+ if (db_get_b(NULL, MODULE, "AutoUpdate", 1) != 0 && diff >= DBGetContactSettingDword(hContact, MODULE, "UpdateTime", 60) * 60)
{
UpdateListAdd(hContact);
HaveUpdates = TRUE;
|