on xenial help sign in
use current, don't deref twice
commitdb2571d667adca424e73b7a6b45f27a0c5952af8 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 5 Jan 2017, 13:37 (10 years ago) parent05d9ed4
1 file changed+2−2
plugins/Utils/tabfocusfence.cpp+2−2
plugins/Utils/tabfocusfence.cpp+2−2
@@ -29,7 +29,7 @@ bool TabFocusFenceItem::focusNext()
2929{
3030 QQuickItem * current = scopedFocusItem();
3131 if (current) {
32− QQuickItem * next = scopedFocusItem()->nextItemInFocusChain(true);
32+ QQuickItem * next = current->nextItemInFocusChain(true);
3333 if (next) {
3434 next->setFocus(true, Qt::TabFocusReason);
3535 return true;
@@ -42,7 +42,7 @@ bool TabFocusFenceItem::focusPrev()
4242{
4343 QQuickItem * current = scopedFocusItem();
4444 if (current) {
45− QQuickItem * prev = scopedFocusItem()->nextItemInFocusChain(false);
45+ QQuickItem * prev = current->nextItemInFocusChain(false);
4646 if (prev) {
4747 prev->setFocus(true, Qt::BacktabFocusReason);
4848 return true;