Skip to content

Commit

Permalink
Ensure single auto-selection in Fancy Menu's app view
Browse files Browse the repository at this point in the history
Fixes #2015
  • Loading branch information
tsujan committed Jan 30, 2024
1 parent 212b20c commit 4c8689a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-fancymenu/lxqtfancymenuwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ void LXQtFancyMenuWindow::autoSelect()
idx = mAppView->indexAt(mAppView->viewport()->mapFromGlobal(QCursor::pos()));
if (idx.isValid() && !mAppView->selectionModel()->isSelected(idx))
{
mAppView->selectionModel()->setCurrentIndex(idx, QItemSelectionModel::SelectCurrent);
mAppView->selectionModel()->setCurrentIndex(idx, QItemSelectionModel::ClearAndSelect);
}
}
}

0 comments on commit 4c8689a

Please sign in to comment.