sfx2/source/doc/sfxbasemodel.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 74d22a7dad84f4abff1819764b8c407d89bb0985 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Fri Feb 23 14:13:22 2024 -0400 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Mon Feb 26 11:48:18 2024 +0100 lok: fix export pdf error When autosave is triggered and for some reason fails, the callback LOK_CALLBACK_EXPORT_FILE message is sent to client. ------------- wsd-1210529-1210690 2024-02-23 16:49:50.381079 +1030 [ docbroker_001 ] TRC Triggering an autosave by timer| wsd/DocumentBroker.cpp:499 wsd-1210529-1210690 2024-02-23 16:49:50.381083 +1030 [ docbroker_001 ] TRC autoSave(): forceful? false, dontSaveIfUnmodified: true| wsd/DocumentBroker.cpp:2329 wsd-1210529-1210690 2024-02-23 16:49:50.381087 +1030 [ docbroker_001 ] TRC Checking to autosave [https%3A%2F%2Flocalhost%3A9980%2Fwopi%2Ffiles%2Fhome%2Fvalaki%2Fprojects%2Fconlinenext%2Ftest%2Fdata%2Fhello-world.ods] using session [072]| wsd/DocumentBroker.cpp:2365 ----------------------- wsd-1210529-1210690 2024-02-23 1kit-1210581-1210547 2024-02-23 16:50:14.250861 +1030 [ kitbroker_001 ] TRC Document::ViewCallback [4] [LOK_CALLBACK_EXPORT_FILE] [ERROR].| kit/Kit.cpp:1102 kit-1210581-1210547 2024-02-23 16:50:14.250880 +1030 [ kitbroker_001 ] TRC Document::ViewCallback end.| kit/Kit.cpp:1211 Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I6961d562bad8aa77bf479bafcaa8bd758dae259a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163857 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index ab05b4604084..34776cdd95ea 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3239,7 +3239,9 @@ void SfxBaseModel::impl_store( const OUString& sURL SfxGetpApp()->NotifyEvent( SfxEventHint( bSaveTo ? SfxEventHintId::SaveToDocFailed : SfxEventHintId::SaveAsDocFailed, GlobalEventConfig::GetEventName( bSaveTo ? GlobalEventId::SAVETODOCFAILED : GlobalEventId::SAVEASDOCFAILED), m_pData->m_pObjectShell.get() ) ); - if ( comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() ) + if ( comphelper::LibreOfficeKit::isActive() && + aFilterName.indexOf("pdf_Export") > 0 && + SfxViewShell::Current() ) SfxViewShell::Current()->libreOfficeKitViewCallback( LOK_CALLBACK_EXPORT_FILE, "ERROR" ); std::stringstream aErrCode;