[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sfx2/source

Pranav Kant pranavk at collabora.co.uk
Thu Jan 25 16:12:29 UTC 2018


 sfx2/source/dialog/basedlgs.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit cc9ca93c52e40557ed918868e235d393f9ecde6e
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Jan 25 19:27:41 2018 +0530

    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 <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 94b4225ddf7f..f09d4a26fd87 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -206,13 +206,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);


More information about the Libreoffice-commits mailing list