Skip to content

Commit

Permalink
prohibit WWaveformViewer getting focused
Browse files Browse the repository at this point in the history
so the currently focused widget stays focused, which is crucial for toggling maximize_library
with <Spacebar> when any of the library widgets has focus.
  • Loading branch information
ronso0 committed Jul 20, 2021
1 parent 80e9fa8 commit 9c0ac1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/wwaveformviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ WWaveformViewer::WWaveformViewer(
m_pPlayEnabled = new ControlProxy(group, "play", this, ControlFlag::NoAssertIfMissing);

setAttribute(Qt::WA_OpaquePaintEvent);
setFocusPolicy(Qt::NoFocus);
}

WWaveformViewer::~WWaveformViewer() {
Expand Down

0 comments on commit 9c0ac1d

Please sign in to comment.