summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-09-07 12:04:50 +0000
committerRobert Pösel <robyer@seznam.cz>2014-09-07 12:04:50 +0000
commitb0ccb81ac202a7f374479a69d5aeecff838b4497 (patch)
tree9397a4ca6b3c9db08e6c9f4118b4462107434c38 /plugins/PluginUpdater/src
parente45814fa79757ad4ba4611ffcc945ecc05d0245a (diff)
PluginUpdater: Further fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r--plugins/PluginUpdater/src/Options.cpp4
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp1
-rw-r--r--plugins/PluginUpdater/src/Utils.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp
index e9fab3d60d..aa59496ac0 100644
--- a/plugins/PluginUpdater/src/Options.cpp
+++ b/plugins/PluginUpdater/src/Options.cpp
@@ -67,7 +67,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
db_free(&dbv);
}
else
- SetDlgItemText(hwndDlg, IDC_CUSTOMURL, _T(DEFAULT_UPDATE_URL));
+ SetDlgItemText(hwndDlg, IDC_CUSTOMURL, ptrT(GetDefaultUrl()));
}
}
return TRUE;
@@ -116,7 +116,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
db_free(&dbv);
}
else
- SetDlgItemText(hwndDlg, IDC_CUSTOMURL, _T(DEFAULT_UPDATE_URL));
+ SetDlgItemText(hwndDlg, IDC_CUSTOMURL, ptrT(GetDefaultUrl()));
}
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index 6e12f8739d..7ae7d8a48f 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -138,7 +138,6 @@ extern "C" __declspec(dllexport) int Load(void)
}
else db_set_b(0, MODNAME, "UpdateMode", UPDATE_MODE_CUSTOM);
}
- else db_set_b(0, MODNAME, "UpdateMode", UPDATE_MODE_STABLE);
}
return 0;
}
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp
index b3fa6e2df2..2ee3402a76 100644
--- a/plugins/PluginUpdater/src/Utils.cpp
+++ b/plugins/PluginUpdater/src/Utils.cpp
@@ -153,7 +153,7 @@ TCHAR* GetDefaultUrl()
// Check if there is url for custom mode
if (UpdateMode == UPDATE_MODE_CUSTOM) {
- url = db_get_tsa(NULL, MODNAME, "UpdateMode");
+ url = db_get_tsa(NULL, MODNAME, "UpdateUrl");
if (url == NULL) {
// No url for custom mode, reset that setting so it will be determined automatically
db_unset(NULL, MODNAME, "UpdateMode");