Skip to content

Commit

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

0 comments on commit 7f11c80

Please sign in to comment.