diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-28 12:32:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-28 21:10:34 +0200 |
commit | 091f244d4d68ea9973a502632c6aeee19d702139 (patch) | |
tree | 9ebd536d2575385e75c0543eb14c6ee66f83d20c /sw/inc/AnnotationWin.hxx | |
parent | fb48e9cca4b4ba26d20e1fdd0f9ee65e7ef54210 (diff) |
Related: tdf#136985 restore focus to doc it wasn't initially in the comment
after processing a menu command if we grabbed focus to a comment at the start
of the the menu command processing
Change-Id: I6cf4b59fc0c5d3e09578cb0466b15ae358cfb0ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103547
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/AnnotationWin.hxx')
-rw-r--r-- | sw/inc/AnnotationWin.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index a11ec583792f..3be381bf3a7c 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -197,7 +197,10 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window bool IsThreadResolved(); // Set this SwAnnotationWin as the currently active one - void SetActiveSidebarWin(); + // return false if it was already active + bool SetActiveSidebarWin(); + // Unset this SwAnnotationWin as the currently active one + void UnsetActiveSidebarWin(); /// Find the first annotation for the thread which this annotation is in. /// This may be the same annotation as this one. |