Skip to content

Commit

Permalink
Fix wrong size of hotcue window
Browse files Browse the repository at this point in the history
The size of the popup is used to calculate its placement.
Since the window was not yet shown, the layout is not caculated and
therfore the returned size is wrong. Force calculation on init.
  • Loading branch information
poelzi committed Nov 2, 2020
1 parent 8b89f25 commit eb3b2fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widget/wcuemenupopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ WCueMenuPopup::WCueMenuPopup(UserSettingsPointer pConfig, QWidget* parent)
pMainLayout->addSpacing(5);
pMainLayout->addLayout(pRightLayout);
setLayout(pMainLayout);
layout()->update();
layout()->activate();
}

void WCueMenuPopup::setTrackAndCue(TrackPointer pTrack, CuePointer pCue) {
Expand Down

0 comments on commit eb3b2fd

Please sign in to comment.