From 205b57531d8b3d11c6d666f302426057c41d3fb0 Mon Sep 17 00:00:00 2001 From: Dominic Clark Date: Sun, 3 Mar 2019 16:06:04 +0000 Subject: [PATCH] Don't show error when loading empty VeSTige instance --- plugins/vestige/vestige.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 0cfa31d21..fc07e46d5 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -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 ) {