fix #276526: play panel position not restored on toggle

This commit is contained in:
James Thistlewood 2018-09-27 18:22:22 +01:00
parent 58fc85be80
commit 132880f4f9
2 changed files with 8 additions and 3 deletions

View file

@ -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);
}

View file

@ -33,7 +33,7 @@ namespace Ms {
//---------------------------------------------------------
PlayPanel::PlayPanel(QWidget* parent)
: QDockWidget("PlayPanel", parent)
: QDockWidget("Play Panel", parent)
{
cachedTickPosition = -1;
cachedTimePosition = -1;