mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-06 13:56:29 -04:00
fixed wrong model-index (=>wrong description-widget) when filtering
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@901 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -251,7 +251,12 @@ void effectListWidget::rowChanged( const QModelIndex & _idx,
|
||||
delete m_descriptionWidget;
|
||||
m_descriptionWidget = NULL;
|
||||
|
||||
m_currentSelection = m_effectKeys[_idx.row()];
|
||||
if( m_model.mapToSource( _idx ).row() < 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_currentSelection = m_effectKeys[m_model.mapToSource( _idx ).row()];
|
||||
if( m_currentSelection.desc &&
|
||||
m_currentSelection.desc->sub_plugin_features )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user