[Libreoffice-commits] core.git: Branch 'feature/lok_dialog2' - desktop/source

Pranav Kant pranavk at collabora.co.uk
Fri Dec 1 10:40:29 UTC 2017


 desktop/source/lib/init.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25bb6cf5dc65712a9444becfa0d493f1708c6efb
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Dec 1 16:09:43 2017 +0530

    fixup! lokdialog: Allow closing a dialog from LOK client
    
    Change-Id: I353336fcabf56518d391289c8d10b4ed62333c7f

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 0b3cc7ab8a68..2eb2693ac244 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3265,7 +3265,7 @@ static void doc_postWindow(LibreOfficeKitDocument* /*pThis*/, unsigned nLOKWindo
     if (Dialog* pDialog = dynamic_cast<Dialog*>(pWindow.get()))
     {
         if (nAction == LOK_WINDOW_CLOSE)
-            pDialog->EndDialog( RET_OK );
+            pDialog->EndDialog( RET_CANCEL );
     }
 }
 


More information about the Libreoffice-commits mailing list