summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-01-25 19:27:41 +0530
committerJan Holesovsky <kendy@collabora.com>2018-01-25 17:12:07 +0100
commitcc9ca93c52e40557ed918868e235d393f9ecde6e (patch)
treedc635f9a7d8fa20e7c5c0ab6afd96ee10513155f /sfx2
parent3b22b8077d744f39ca5c202570d21f2f32f02b45 (diff)
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@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/basedlgs.cxx7
1 files changed, 0 insertions, 7 deletions
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);