Skip to content

Commit 205b575

Browse files
DomClarkPhysSong
authored andcommitted
Don't show error when loading empty VeSTige instance
1 parent 6fef905 commit 205b575

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/vestige/vestige.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,13 @@ vestigeInstrument::~vestigeInstrument()
181181

182182
void vestigeInstrument::loadSettings( const QDomElement & _this )
183183
{
184-
loadFile( _this.attribute( "plugin" ) );
184+
QString plugin = _this.attribute( "plugin" );
185+
if( plugin.isEmpty() )
186+
{
187+
return;
188+
}
189+
190+
loadFile( plugin );
185191
m_pluginMutex.lock();
186192
if( m_plugin != NULL )
187193
{

0 commit comments

Comments
 (0)