diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-25 18:48:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-25 18:48:18 +0300 |
commit | 425b12911e11a8902d2f1963c2ac9c17a8904b30 (patch) | |
tree | 73f135ae8d471498517c3a6b8f305fa46aa5871e /plugins/Scriver/src/globals.cpp | |
parent | cd4e21415d7f87e9c749eeb7749b832cfb79b69d (diff) |
Scriver: killing that old shit with error dialog
Diffstat (limited to 'plugins/Scriver/src/globals.cpp')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index 670aabd547..7a174bf528 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -128,13 +128,8 @@ static int ackevent(WPARAM, LPARAM lParam) if (hwndSender != nullptr) {
SendMessage(hwndSender, DM_STOPMESSAGESENDING, 0, 0);
- ErrorWindowData *ewd = (ErrorWindowData*)mir_alloc(sizeof(ErrorWindowData));
- ewd->szName = mir_wstrdup(pcli->pfnGetContactDisplayName(item->hContact, 0));
- ewd->szDescription = mir_a2u((char *)pAck->lParam);
- ewd->szText = GetSendBufferMsg(item);
- ewd->hwndParent = hwndSender;
- ewd->queueItem = item;
- SendMessage(hwndSender, DM_SHOWERRORMESSAGE, 0, (LPARAM)ewd);
+ CErrorDlg *pDlg = new CErrorDlg(_A2T((char *)pAck->lParam), hwndSender, item);
+ SendMessage(hwndSender, DM_SHOWERRORMESSAGE, 0, (LPARAM)pDlg);
}
else RemoveSendQueueItem(item);
}
|