Summary: | KTextEdit blocks find shortcut even when find is disabled. | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | David Edmundson <kde> |
Component: | kdeui | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cfeck |
Priority: | NOR | ||
Version: | 4.7 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.4 | |
Sentry Crash Report: |
Description
David Edmundson
2011-10-19 07:13:13 UTC
Should be: if (findReplaceEnabled && KStandardShortcut::find().contains(key)) { parent->slotFind(); return true; } If you want to go through the trouble to open a review request, please do, otherwise I can just commit it. Ideally it needs doing for instances of find, find next and replace. I'm happy for you to commit, or I can do it if you're busy. Did you actually test if it works with the change? I am unsure if KTextEdit::Private::overrideShortcut() needs to be changed, too. Doh', you already wrote that it also needs to be changed in overrideShortcut :) I am getting old :P Git commit bb01bd6bcd5f2353c247c382ad716f6afe1a39dc by Christoph Feck. Committed on 14/11/2011 at 15:56. Pushed by cfeck into branch 'KDE/4.7'. Handle shortcuts for Find/Replace actions only when findReplaceEnabled() Simpler and less intrusive compared to the patch from RB, as discussed with David Faure. BUG: 284433 FIXED-IN: 4.7.4 REVIEW: 102919 M +9 -11 kdeui/widgets/ktextedit.cpp http://commits.kde.org/kdelibs/bb01bd6bcd5f2353c247c382ad716f6afe1a39dc |