fix #276526: play panel position not restored on toggle
This commit is contained in:
parent
58fc85be80
commit
132880f4f9
2 changed files with 8 additions and 3 deletions
|
@ -2511,9 +2511,14 @@ void MuseScore::showPlayPanel(bool visible)
|
|||
playPanel->setGain(synti->gain());
|
||||
playPanel->setScore(cs);
|
||||
addDockWidget(Qt::RightDockWidgetArea, playPanel);
|
||||
|
||||
// The play panel must be set visible before being set floating for positioning
|
||||
// and window geometry reasons.
|
||||
playPanel->setVisible(visible);
|
||||
playPanel->setFloating(false);
|
||||
}
|
||||
playPanel->setVisible(visible);
|
||||
playPanel->setFloating(false);
|
||||
else
|
||||
playPanel->setVisible(visible);
|
||||
playId->setChecked(visible);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace Ms {
|
|||
//---------------------------------------------------------
|
||||
|
||||
PlayPanel::PlayPanel(QWidget* parent)
|
||||
: QDockWidget("PlayPanel", parent)
|
||||
: QDockWidget("Play Panel", parent)
|
||||
{
|
||||
cachedTickPosition = -1;
|
||||
cachedTimePosition = -1;
|
||||
|
|
Loading…
Reference in a new issue