do not allow to import unhandled file types, e.g. ZynAddSubFX presets if plugin is not available (closes #2326384) (stable backport)
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@1844 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-11-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/gui/file_browser.cpp:
|
||||
do not allow to import unhandled file types, e.g. ZynAddSubFX presets if
|
||||
plugin is not available (closes #2326384)
|
||||
|
||||
2008-11-21 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* plugins/flp_import/flp_import.h:
|
||||
|
||||
@@ -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