Resolves: tdf#112063 ensure closing dialog is not parent for file dialog

Change-Id: Iea2ecaf1669cf7af00f00b1f0b32e24d34ec3757
Reviewed-on: https://gerrit.libreoffice.org/41764
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2017-08-31 17:14:18 +01:00
parent fa7e150241
commit 69c1e6c548

View File

@@ -1109,7 +1109,11 @@ void LibPage::Export()
{ {
try try
{ {
if (aNewDlg->isExportAsPackage()) bool bExportAsPackage = aNewDlg->isExportAsPackage();
//tdf#112063 ensure closing aNewDlg is not selected as
//parent of file dialog from ExportAs...
aNewDlg.disposeAndClear();
if (bExportAsPackage)
ExportAsPackage( aLibName ); ExportAsPackage( aLibName );
else else
ExportAsBasic( aLibName ); ExportAsBasic( aLibName );