summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Update.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-13 09:30:06 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-13 09:30:06 +0000
commit6ad7f42a8c0386c420e2febe1f79a5806edaa8ed (patch)
tree2668bb5e92fbd94c978cf9424f025586c7f194b8 /plugins/NewsAggregator/Src/Update.cpp
parent185c3f9112fa1a4efb51c569179d57a82fb2d64e (diff)
fixed not setting timer when checking at startup disabled
git-svn-id: http://svn.miranda-ng.org/main/trunk@3089 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Update.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Update.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp
index c049043128..5a34bfb69b 100644
--- a/plugins/NewsAggregator/Src/Update.cpp
+++ b/plugins/NewsAggregator/Src/Update.cpp
@@ -60,9 +60,10 @@ VOID CALLBACK timerProc2(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
KillTimer(NULL, timerId);
ThreadRunning = FALSE;
- if (db_get_b(NULL, MODULE, "AutoUpdate", 1) && !Miranda_Terminated() && db_get_b(NULL, MODULE, "StartupRetrieve", 1))
+ if (db_get_b(NULL, MODULE, "AutoUpdate", 1) && !Miranda_Terminated())
{
- CheckAllFeeds(0, 1);
+ if (db_get_b(NULL, MODULE, "StartupRetrieve", 1))
+ CheckAllFeeds(0, 1);
timerId = SetTimer(NULL, 0, 30000, (TIMERPROC)timerProc);
}
}