mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
Add missing braces
Coverity issue 23506.
This commit is contained in:
parent
7065406eca
commit
61f0271031
@ -2869,10 +2869,11 @@ QTreeWidgetItem * PrefShortcuts::insertShortcutItem(FuncRequest const & lfun,
|
||||
QList<QTreeWidgetItem*> const items = shortcutsTW->findItems(lfun_name,
|
||||
Qt::MatchFlags(Qt::MatchExactly | Qt::MatchRecursive), 0);
|
||||
for (int i = 0; i < items.size(); ++i) {
|
||||
if (items[i]->text(1) == shortcut)
|
||||
if (items[i]->text(1) == shortcut) {
|
||||
newItem = items[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
// if not found, this unbind item is KeyMap::UserExtraUnbind
|
||||
// Such an item is not displayed to avoid confusion (what is
|
||||
// unmatched removed?).
|
||||
|
Loading…
Reference in New Issue
Block a user