Skip to content

Commit

Permalink
Don't show error when loading empty VeSTige instance
Browse files Browse the repository at this point in the history
  • Loading branch information
DomClark authored and PhysSong committed Mar 14, 2019
1 parent 6fef905 commit 205b575
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/vestige/vestige.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 205b575

Please sign in to comment.