summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-12-19 22:51:00 +0530
committerAndras Timar <andras.timar@collabora.com>2018-03-19 19:02:11 +0100
commita3b1500439ebc9986a57457254cdeaddbf458832 (patch)
tree11674602ad0584b2dbd6da18472cfc589a6ab164 /desktop/source
parentf03e71758c9a2f616dfbaaf81b77bd73b7024c8b (diff)
lokdialog: Handle closing of modeless dialogs too
Change-Id: I87ed60e940fad199b14a2e2179cc1f10008bfe93 (cherry picked from commit fbd537ae68ec587c323fb0f1674bdd7747b93d04)
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 13b072ec630f..670032a18211 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3308,7 +3308,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_CANCEL );
+ pDialog->Close();
}
}