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