# HG changeset patch # User Chris Cannam # Date 1541085099 0 # Node ID 47f35694d603ccf359a6c8820bedf7f0dba3749a # Parent a476c2a015e8e7390b18810461808239b8fb1d6f Initialise level and pan from current state of layer's parameters (e.g. when reloading session) diff -r a476c2a015e8 -r 47f35694d603 widgets/PropertyBox.cpp --- a/widgets/PropertyBox.cpp Thu Nov 01 15:11:21 2018 +0000 +++ b/widgets/PropertyBox.cpp Thu Nov 01 15:11:39 2018 +0000 @@ -181,6 +181,8 @@ LevelPanToolButton *levelPan = new LevelPanToolButton; levelPan->setFixedSize(buttonSize); levelPan->setImageSize((buttonSize.height() * 3) / 4); + levelPan->setLevel(params->getPlayGain()); + levelPan->setPan(params->getPlayPan()); layout->addWidget(levelPan, 0, col++, Qt::AlignCenter); connect(levelPan, SIGNAL(levelChanged(float)), this, SLOT(playGainControlChanged(float)));