Skip to content

Commit

Permalink
Merge pull request mixxxdj#13698 from ronso0/no-properties-in-browse
Browse files Browse the repository at this point in the history
(fix) disable Properties shortcut in Computer feature views
  • Loading branch information
daschuer authored Sep 30, 2024
2 parents 794c71f + cea8aec commit f873f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widget/wtracktableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,12 @@ void WTrackTableView::keyPressEvent(QKeyEvent* event) {
if (event->modifiers().testFlag(Qt::NoModifier)) {
slotMouseDoubleClicked(currentIndex());
} else if ((event->modifiers() & kPropertiesShortcutModifier)) {
TrackModel* pTrackModel = getTrackModel();
if (!pTrackModel ||
!pTrackModel->hasCapabilities(
TrackModel::Capability::EditMetadata)) {
return;
}
const QModelIndexList indices = getSelectedRows();
if (indices.length() == 1) {
m_pTrackMenu->loadTrackModelIndices(indices);
Expand Down

0 comments on commit f873f54

Please sign in to comment.