do not allow to import unhandled file types, e.g. ZynAddSubFX presets if plugin is not available (closes #2326384)
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1843 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -613,7 +613,7 @@ void fileBrowserTreeWidget::activateListItem( QTreeWidgetItem * _item,
|
||||
{
|
||||
handleFile( f, NULL );
|
||||
}
|
||||
else
|
||||
else if( f->handling() != fileItem::NotSupported )
|
||||
{
|
||||
engine::getMixer()->lock();
|
||||
instrumentTrack * it = dynamic_cast<instrumentTrack *>(
|
||||
@@ -964,11 +964,16 @@ void fileItem::determineFileType( void )
|
||||
m_type = ProjectFile;
|
||||
m_handling = LoadAsProject;
|
||||
}
|
||||
else if( ext == "xpf" || ext == "xml" || ext == "xiz" )
|
||||
else if( ext == "xpf" || ext == "xml" )
|
||||
{
|
||||
m_type = PresetFile;
|
||||
m_handling = LoadAsPreset;
|
||||
}
|
||||
else if( ext == "xiz" && engine::pluginFileHandling().contains( ext ) )
|
||||
{
|
||||
m_type = PresetFile;
|
||||
m_handling = LoadByPlugin;
|
||||
}
|
||||
else if( ext == "sf2" )
|
||||
{
|
||||
m_type = SoundFontFile;
|
||||
|
||||
Reference in New Issue
Block a user