From 01d422f263f825904cc475c07e1bdbacd25f3b74 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 25 Jan 2018 19:27:41 +0530 Subject: lokdialog: No need to notify 'close' callback here This is now handled in Dialog::dispose Change-Id: If6703dbf1fa02c3d83debcc17eba3c6b1ee49a1c Reviewed-on: https://gerrit.libreoffice.org/48622 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky (cherry picked from commit cc9ca93c52e40557ed918868e235d393f9ecde6e) Reviewed-on: https://gerrit.libreoffice.org/57506 Tested-by: Jenkins --- sfx2/source/dialog/basedlgs.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index 9aa81f460a2a..f58b2f407f4f 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -171,13 +171,6 @@ void SfxModalDialog::StateChanged( StateChangedType nType ) aItems.emplace_back("title", GetText().toUtf8()); SfxViewShell::Current()->notifyWindow(GetLOKWindowId(), "created", aItems); } - else if (nType == StateChangedType::Visible && - !IsVisible() && - GetLOKNotifier()) - { - SfxViewShell::Current()->notifyWindow(GetLOKWindowId(), "close"); - ReleaseLOKNotifier(); - } } ModalDialog::StateChanged(nType); -- cgit