mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-21 23:43:14 -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:
@@ -1,5 +1,8 @@
|
||||
2008-04-07 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/gui/effect_select_dialog.cpp:
|
||||
fixed wrong model-index (=>wrong description-widget) when filtering
|
||||
|
||||
* src/gui/lmms_style.cpp:
|
||||
decreased button-icon-size to 20px
|
||||
|
||||
|
||||
@@ -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