Don't show error when loading empty VeSTige instance

This commit is contained in:
Dominic Clark
2019-03-03 16:06:04 +00:00
committed by Hyunjin Song
parent 6fef905dfe
commit 205b57531d

View File

@@ -181,7 +181,13 @@ vestigeInstrument::~vestigeInstrument()
void vestigeInstrument::loadSettings( const QDomElement & _this )
{
loadFile( _this.attribute( "plugin" ) );
QString plugin = _this.attribute( "plugin" );
if( plugin.isEmpty() )
{
return;
}
loadFile( plugin );
m_pluginMutex.lock();
if( m_plugin != NULL )
{