filter/source/pdf/pdfinteract.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit fb213ad1e98327f17cc427751785cb83d2323225
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Jan 26 21:18:53 2026 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Tue Jan 27 09:53:19 2026 +0100

    make the PDF export warning dialog async
    
    Change-Id: I19715102a1db7fb4f3f996cb02d1309caa2d0a4a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198170
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/filter/source/pdf/pdfinteract.cxx 
b/filter/source/pdf/pdfinteract.cxx
index bd08fd0b292b..50f4a3523e9d 100644
--- a/filter/source/pdf/pdfinteract.cxx
+++ b/filter/source/pdf/pdfinteract.cxx
@@ -60,15 +60,14 @@ sal_Bool SAL_CALL 
PDFInteractionHandler::handleInteractionRequest( const Referen
         for( sal_Int32 i = 0; i < nCodes; i++ )
             aCodes.insert( 
static_cast<vcl::PDFWriter::ErrorCode>(aExc.ErrorCodes.getConstArray()[i]) );
 
-        ImplErrorDialog aDlg(Application::GetFrameWeld(m_xParent), aCodes);
-        aDlg.run();
+        auto xDialog = 
std::make_shared<ImplErrorDialog>(Application::GetFrameWeld(m_xParent), aCodes);
+        weld::DialogController::runAsync(xDialog, [](sal_uInt32 /*nResult*/) 
{});
+
         bHandled = true;
     }
     return bHandled;
 }
 
-
-
 OUString SAL_CALL PDFInteractionHandler::getImplementationName()
 {
     return u"com.sun.star.comp.PDF.PDFExportInteractionHandler"_ustr;

Reply via email to