Mercurial > hg > svgui
diff widgets/PluginParameterDialog.cpp @ 296:ea37c229a578
* Fix #1757772 tempo, dynamic related plug-ins bug -- make auto-align
only auto-align if there is a unit involved
* Fix #1755366 text layer bug in retrieved session
* Fix input model selection in plugin parameter dialog (was being ignored)
* Use lighter background than the standard widget one for panes (assuming the
widget background is light but not white) -- similarly darker if dark
* Fix colour reference counting in loaded session in SingleColourLayer
* Reset overview pane colour when switching dark background on or off
author | Chris Cannam |
---|---|
date | Tue, 14 Aug 2007 13:58:53 +0000 |
parents | 919740b20cc9 |
children | e9549ea3f825 |
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.cpp Mon Aug 13 14:53:28 2007 +0000 +++ b/widgets/PluginParameterDialog.cpp Tue Aug 14 13:58:53 2007 +0000 @@ -439,11 +439,13 @@ m_inputModelList = models; m_inputModels->addItems(TextAbbrev::abbreviate(models, 80)); + m_inputModels->setCurrentIndex(0); if (lastModel != "") { for (int i = 0; i < models.size(); ++i) { if (lastModel == models[i]) { m_inputModels->setCurrentIndex(i); + m_currentInputModel = models[i]; break; } } @@ -457,10 +459,7 @@ QString PluginParameterDialog::getInputModel() const { - if (!m_inputModels || !m_inputModels->isVisible()) return ""; - int i = m_inputModels->currentIndex(); - if (i >= m_inputModelList.size()) return ""; - return m_inputModelList[i]; + return m_currentInputModel; } void @@ -547,7 +546,8 @@ PluginParameterDialog::inputModelComboChanged(int index) { if (index >= m_inputModelList.size()) return; - emit inputModelChanged(m_inputModelList[index]); + m_currentInputModel = m_inputModelList[index]; + emit inputModelChanged(m_currentInputModel); } void