https://bugs.documentfoundation.org/show_bug.cgi?id=103919
--- Comment #18 from Alex Kempshall <[email protected]> ---
I did submit a hack for this which was to simply take out the code that closed
the dialog. It got rejected because
"
Patch Set 2: Code-Review-2
Sure it fixes the problem, if the user keeps LO open long enough, but you won't
get any feedback _when_ that is. With this patch the MailDispatcher thread is
simply never stopped.
"
It's been suggested that -
"
The email progress dialog is created using
VclPtr<SwSendMailDialog> pDlg =
VclPtr<SwSendMailDialog>::Create(pButton, *xConfigItem);
And this dialog actually creates and keeps the mail dispatcher alive, as you
can see in struct SwSendMailDialog_Impl.
The main problem seems to be the last endDialog(pButton);, which you
removed. As the pDlg has the pButton as a parent, the destruction of the main
dialog also closes the progress dlg, which shuts down the dispatcher.
So a quick fix would probably be to make the SwSendMailDialog modal and execute
it before the endDialog. This should block closing the MM wizard. I don't know,
if it has a way to interact, but I guess it closes when all mails are send.
A better fix would be to change the parent of SwSendMailDialog to something
else, so it won't close on MM wizard close, and will still process the mails in
the background. So a user can still use LO while the emails are send, but
obviously is also able to close LO.
"
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs