diff options
author | Alex McMurchy1917 <mcmurchy1917-libreoffice@yahoo.co.uk> | 2017-08-24 14:34:13 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-02-13 14:58:53 +0100 |
commit | bfaa6e35ff09a0426d2c3c9c36f069fabc0c9489 (patch) | |
tree | d886a6b2836d0a4165f33185caa38e3b4c98fa7a /sw/uiconfig | |
parent | 8da3121ac36e7bdc3297bf9aa4786d672a869c9d (diff) |
tdf#103919 mailmerge: prevent premature end of emailing
...by changing the parent of SwSendMailDialog.
The destruction of the main dialog (SwMMResultEmailDialog) also
closes the progress dlg (SwSendMailDialog), which shuts down the
dispatcher stopping anymore messages from being sent. Have changed
the parent of progress dlg such that it will not close when the
main dialog is closed. This has allowed the main dialog to be
closed immediately after the progress dialog had been created
making for a cleaner ui.
There were problems with the timer causing LO to consistently crash
during the dispose of OutputDevice, but I could find no logical
reason for the crashes.
(It didn't crash if smtp authentication failed. It also didn't
crash when run in gdb...)
Moving the exit code from StateChanged to CloseHdl magically
fixed the crashing problem. I think it makes it a bit clearer
to end in closeHdl anyway, and start the timer only in case of
an early cancellation (before all the mail messages
have been queued up). This eliminates MOST of the use of the
timer - since the typical exit occurs after the email process
has finished.
Change-Id: Icd3af372772fab3e78eb0702b120d7a811baa6bd
Reviewed-on: https://gerrit.libreoffice.org/41519
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/uiconfig')
-rw-r--r-- | sw/uiconfig/swriter/ui/mmsendmails.ui | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/uiconfig/swriter/ui/mmsendmails.ui b/sw/uiconfig/swriter/ui/mmsendmails.ui index d53421211188..b4c055f1a71f 100644 --- a/sw/uiconfig/swriter/ui/mmsendmails.ui +++ b/sw/uiconfig/swriter/ui/mmsendmails.ui @@ -23,7 +23,7 @@ <property name="layout_style">end</property> <child> <object class="GtkButton" id="stop"> - <property name="label" translatable="yes" context="mmsendmails|stop">_Stop</property> + <property name="label" translatable="yes" context="mmsendmails|stop">_Pause</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -38,7 +38,7 @@ </child> <child> <object class="GtkButton" id="close"> - <property name="label">gtk-close</property> + <property name="label">gtk-cancel</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> |