diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-06-14 09:18:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-06-14 13:06:54 +0200 |
commit | 252239ae30313142195b3da81aea45a89b2d6674 (patch) | |
tree | b77efb3d2405bba253e6cd6f3633dff51ad21783 /include/vcl/event.hxx | |
parent | 8303e7ed668fbcbd0ba75bd9dd259f03073ffd46 (diff) |
disable 'quit' menu entry when modal dialog waiting response
Traditionally when a modal dialog is active, the quit menu entry of all
LibreOffice toplevel frames, not just those which are themselves modal, is get
disabled.
This has come unstuck because its implemented by dialogs emitting
MouseNotifyEvent::[END]EXECUTEDIALOG on its parent, and SfxFrameWindow_Impl
listening for that event. But if the dialog parent is the toplevel parent of
SfxFrameWindow_Impl then it doesn't get seen by the SfxFrameWindow_Impl child.
Change-Id: I0c4a5472d16d9169e68f6b0c230d039f1119489a
Reviewed-on: https://gerrit.libreoffice.org/73975
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/event.hxx')
-rw-r--r-- | include/vcl/event.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx index d1e4b61b876d..bd0b5589f375 100644 --- a/include/vcl/event.hxx +++ b/include/vcl/event.hxx @@ -276,9 +276,7 @@ enum class MouseNotifyEvent GETFOCUS = 6, LOSEFOCUS = 7, COMMAND = 8, - INPUTENABLE = 10, - EXECUTEDIALOG = 100, - ENDEXECUTEDIALOG = 101 + INPUTENABLE = 10 }; class VCL_DLLPUBLIC NotifyEvent |