D22309: Snippets: Fix the keyboard shortcuts for new snippets not working
Thomas Schöps
noreply at phabricator.kde.org
Sun Jul 7 15:12:19 BST 2019
thomassc created this revision.
Herald added a project: Kate.
Herald added a subscriber: kwrite-devel.
thomassc requested review of this revision.
REVISION SUMMARY
After creating a new snippet with an assigned keyboard shortcut, this shortcut did not work directly. This was because the snippet QActions are added to a widget by a rowsInserted() signal, but the new snippet's QAction did not exist yet at this time. This change ensures that the new snippet's QAction is created in time.
TEST PLAN
I tested it manually.
REPOSITORY
R40 Kate
BRANCH
snippets_fix_shortcuts_for_new_snippets
REVISION DETAIL
https://phabricator.kde.org/D22309
AFFECTED FILES
addons/snippets/editsnippet.cpp
To: thomassc
Cc: kwrite-devel, domson, michaelh, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190707/969c2a4b/attachment.html>
More information about the KWrite-Devel
mailing list