summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/dlg_anniversarylist.cpp')
-rw-r--r--plugins/UserInfoEx/src/dlg_anniversarylist.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
index 2bb666f10e..06404c4301 100644
--- a/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
+++ b/plugins/UserInfoEx/src/dlg_anniversarylist.cpp
@@ -653,7 +653,6 @@ class CAnnivList
SetUserData(hDlg, NULL);
delete pDlg;
}
- MagneticWindows_RemoveWindow(hDlg);
} break;
}
return FALSE;
@@ -959,10 +958,8 @@ public:
LoadFilter();
_hDlg = CreateDialogParam(ghInst, MAKEINTRESOURCE(IDD_ANNIVERSARY_LIST), NULL, DlgProc, (LPARAM)this);
- if (_hDlg) {
- MagneticWindows_AddWindow(_hDlg);
- _mHookExit = HookEventMessage(ME_SYSTEM_PRESHUTDOWN, _hDlg, WM_CLOSE);
- }
+ if (_hDlg)
+ _mHookExit = HookEventMessage(ME_SYSTEM_PRESHUTDOWN, _hDlg, WM_CLOSE);
else {
_mHookExit = NULL;
delete this;