summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-10-01 20:16:31 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-10-01 20:16:31 +0000
commit7ab0495f55ede9bd517a8321397cda5ae84aafb2 (patch)
treedfa0e18271d6ce2cd727cb87a635bd8f4b2bce65 /plugins/WinterSpeak
parentd22ed83105dc6342407ea29e0447ef6d3a1106ce (diff)
Winter Speak:
- Fixed message window detection (fixes #943) Fixes bug in [14271] git-svn-id: http://svn.miranda-ng.org/main/trunk@15482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WinterSpeak')
-rw-r--r--plugins/WinterSpeak/src/SpeakAnnounce.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/WinterSpeak/src/SpeakAnnounce.cpp b/plugins/WinterSpeak/src/SpeakAnnounce.cpp
index e4abe9e87d..ebd0949832 100644
--- a/plugins/WinterSpeak/src/SpeakAnnounce.cpp
+++ b/plugins/WinterSpeak/src/SpeakAnnounce.cpp
@@ -157,9 +157,9 @@ bool SpeakAnnounce::readMessage(MCONTACT contact)
//returns 0 on success and returns non-zero (1) on error or if no window data exists for that hcontact
if (CallService(MS_MSG_GETWINDOWDATA, (WPARAM) &mwid, (LPARAM) &mwd) == 0) {
if (m_db.getEventFlag(AnnounceDatabase::EventFlag_DialogOpen))
- return ((mwd.uState & MSG_WINDOW_STATE_EXISTS) != 0);
- else if (m_db.getEventFlag(AnnounceDatabase::EventFlag_DialogOpen))
- return ((mwd.uState & MSG_WINDOW_STATE_FOCUS) != 0);
+ return ((mwd.uState & MSG_WINDOW_STATE_EXISTS) == 0);
+ else if (m_db.getEventFlag(AnnounceDatabase::EventFlag_DialogFocused))
+ return ((mwd.uState & MSG_WINDOW_STATE_FOCUS) == 0);
}
}
return true;