Skip to content

Commit

Permalink
WTrackMenu: explicitly hide in closeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 26, 2024
1 parent 41745e3 commit dab6378
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widget/wtrackmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ const QString WTrackMenu::getDeckGroup() const {
}

void WTrackMenu::closeEvent(QCloseEvent* event) {
// Unfortunately, trackMenuVisible(false) is emitted before the menu is effectively
// closed, which causes issues in WTrackProperty::slotShowTrackMenuChangeRequest.
// Explicitly hide() to avoid this.
hide();
// Actually the event is accepted by default. doing it explicitly doesn't hurt.
// If it's not accepted the menu remains open and entire GUI will be blocked!
event->accept();
Expand Down

0 comments on commit dab6378

Please sign in to comment.