From 425b12911e11a8902d2f1963c2ac9c17a8904b30 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 25 Aug 2017 18:48:18 +0300 Subject: Scriver: killing that old shit with error dialog --- plugins/Scriver/src/globals.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/Scriver/src/globals.cpp') 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); } -- cgit v1.2.3