diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-09-09 22:38:08 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-09-09 22:38:08 +0000 |
commit | ec44b76ba5b67dbce7c85afe83a163953a7b65e0 (patch) | |
tree | 4a96b8fad848e69f860a32c5923e88ad7a5d9a8d /plugins/PluginUpdater/src | |
parent | dee5ce2a65db4c11371a565cbfac0fe082949776 (diff) |
Fixed Plugin updater popups settings
git-svn-id: http://svn.miranda-ng.org/main/trunk@1551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 1df632713b..8e38ea090f 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -116,9 +116,10 @@ static void MakePopupAction(POPUPACTION &pa, int id) void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int ActType)
{
- if ( !ServiceExists(MS_POPUP_ADDPOPUPEX) || !DBGetContactSettingByte(NULL, "PopUp", "ModuleIsEnabled", 1) || !DBGetContactSettingByte(NULL, MODNAME, "Popups2", DEFAULT_POPUP_ENABLED)) {
- char setting[100];
- mir_snprintf(setting, SIZEOF(setting), "Popups%dM", Number);
+ char setting[100];
+ mir_snprintf(setting, SIZEOF(setting), "Popups%dM", Number);
+
+ if ( !ServiceExists(MS_POPUP_ADDPOPUPEX) || !DBGetContactSettingByte(NULL, "PopUp", "ModuleIsEnabled", 1) ) {
if (DBGetContactSettingByte(NULL, MODNAME, setting, DEFAULT_MESSAGE_ENABLED)) {
int iMsgType;
switch( Number ) {
|