https://bugs.kde.org/show_bug.cgi?id=470750

--- Comment #4 from Thomas Fischer <fisc...@unix-ag.uni-kl.de> ---
Git commit d340c9da1b4d9196c60424642537de9e4509617d by Thomas Fischer.
Committed on 03/12/2023 at 21:21.
Pushed by thomasfischer into branch 'master'.

Check if 'View Document' should be enabled more often

Previously, the enable status menu item 'View Document' and list of
associated documents got updated when the entry selection got changed,
i.e. a different entry got selected from the list.
This did not take into account the possibility that a file that can be
associated with an entry becomes available only after selecting an
entry. There is a user-reported use case when using git-annex.

This commit address the issue in the following two ways:
1. A window shortcut (QShortcut) with the same key sequence (Ctrl+D) got
   added, but it is disabled by default, gets enabled when the 'View
   Document' menu item disabled and vice versa. Activating this shortcut
   will first update and possibly enable the 'View Document' action and
   then trigger the original 'view document' code of the 'View Document'
   action. This is transparent to the user.
2. Whenever the context menu on top of an entry in the main list is
   opened, the 'View Document' menu will get updated and enabled if
   files to open got located that were not available earlier.

This commit is a cherry-pick of commit ebbfbf9f94d8bd456464246072 from
branch 'kbibtex/0.10'.

M  +1    -0    ChangeLog
M  +5    -0    src/gui/file/fileview.cpp
M  +2    -0    src/gui/file/fileview.h
M  +37   -10   src/parts/part.cpp

https://invent.kde.org/office/kbibtex/-/commit/d340c9da1b4d9196c60424642537de9e4509617d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to