summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
commitc9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch)
treee15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/MirOTR/src
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/MirOTR/src')
-rw-r--r--plugins/MirOTR/src/dbfilter.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/MirOTR/src/dbfilter.cpp b/plugins/MirOTR/src/dbfilter.cpp
index ef9d7d0d93..d6420f1cea 100644
--- a/plugins/MirOTR/src/dbfilter.cpp
+++ b/plugins/MirOTR/src/dbfilter.cpp
@@ -163,18 +163,19 @@ void FinishSession(MCONTACT hContact)
return;
}
-int WindowEvent(WPARAM, LPARAM lParam)
+int WindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *mwd = (MessageWindowEventData *)lParam;
- if (mwd->uType == MSG_WINDOW_EVT_CLOSE && options.end_window_close) {
- FinishSession(mwd->hContact);
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+
+ if (uType == MSG_WINDOW_EVT_CLOSE && options.end_window_close) {
+ FinishSession(pDlg->m_hContact);
return 0;
}
- if (mwd->uType != MSG_WINDOW_EVT_OPEN)
+ if (uType != MSG_WINDOW_EVT_OPEN)
return 0;
- MCONTACT hContact = mwd->hContact, hTemp;
+ MCONTACT hContact = pDlg->m_hContact, hTemp;
if ((hTemp = db_mc_getMostOnline(hContact)) != 0)
hContact = hTemp;