Skip to content

Commit

Permalink
fixup! Track widgets: add control to open a deck's track menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Aug 28, 2022
1 parent 169c7e8 commit c2eb785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/wtrackproperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ void WTrackProperty::slotShowTrackMenuRequestChange(double show) {
// * popup widget?
// * menu (main menubar, any context menu)?
// * track menu?
bool noActivaPopup = false;
while (!noActivaPopup) {
bool popupActive = true;
while (popupActive) {
QWidget* activePopup = qobject_cast<QWidget*>(QApplication::activePopupWidget());
//QMenu* activePopup = qobject_cast<QMenu*>(QApplication::activePopupWidget());
//QTrackMenu* activePopup = qobject_cast<QTrackMenu*>(QApplication::activePopupWidget());
if (activePopup) {
activePopup->close();
} else {
activePopup = true;
popupActive = false;
}
}

Expand Down

0 comments on commit c2eb785

Please sign in to comment.