Skip to content

Commit

Permalink
Make sure separotor isn't suto-selected
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Jan 30, 2024
1 parent 4c8689a commit fa5d181
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 @@ -698,7 +698,7 @@ 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::ClearAndSelect);
}
Expand Down

0 comments on commit fa5d181

Please sign in to comment.