summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Events.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-10-07 18:41:08 +0000
committerRobert Pösel <robyer@seznam.cz>2014-10-07 18:41:08 +0000
commite7a40f49fabfb003a2603b08a59f205ba1a1a478 (patch)
treee1e04e7d3ef0b5c8e04f62e4659e508cdec58cab /plugins/PluginUpdater/src/Events.cpp
parentb4b974a256953c3e97a7e7b8426740e98fd4541f (diff)
PluginUpdater:
- Fix setting custom URL ("UpdateURL" is not same as "UpdateUrl") - Use constants for often used db setting names - Version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Events.cpp')
-rw-r--r--plugins/PluginUpdater/src/Events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp
index 6afabbe2a7..ed2d5e7811 100644
--- a/plugins/PluginUpdater/src/Events.cpp
+++ b/plugins/PluginUpdater/src/Events.cpp
@@ -53,9 +53,9 @@ int ModulesLoaded(WPARAM, LPARAM)
else
lstrcpyn(tszRoot, VARST( _T("%miranda_path%\\"DEFAULT_UPDATES_FOLDER)), SIZEOF(tszRoot));
- int iRestartCount = db_get_b(NULL, MODNAME, "RestartCount", 2);
+ int iRestartCount = db_get_b(NULL, MODNAME, DB_SETTING_RESTART_COUNT, 2);
if (iRestartCount > 0)
- db_set_b(NULL, MODNAME, "RestartCount", iRestartCount-1);
+ db_set_b(NULL, MODNAME, DB_SETTING_RESTART_COUNT, iRestartCount - 1);
else
EmptyFolder(); // silently