diff --git a/include/Plugin.h b/include/Plugin.h index a07316c40..d9d8bcc2d 100644 --- a/include/Plugin.h +++ b/include/Plugin.h @@ -182,7 +182,7 @@ public: protected: // create a view for the model virtual PluginView* instantiateView( QWidget* ) = 0; - void logError( QString err_msg ); + void collectErrorForUI( QString err_msg ); private: diff --git a/plugins/VstEffect/VstEffect.cpp b/plugins/VstEffect/VstEffect.cpp index 614c44584..f02b02cb1 100644 --- a/plugins/VstEffect/VstEffect.cpp +++ b/plugins/VstEffect/VstEffect.cpp @@ -135,7 +135,7 @@ void VstEffect::openPlugin( const QString & _plugin ) m_pluginMutex.unlock(); closePlugin(); delete tf; - logError( VstPlugin::tr( "The VST plugin %1 could not be loaded." ).arg( _plugin ) ); + collectErrorForUI( VstPlugin::tr( "The VST plugin %1 could not be loaded." ).arg( _plugin ) ); return; } diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 774f6c893..76141a4b9 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -335,7 +335,7 @@ void sf2Instrument::openFile( const QString & _sf2File, bool updateTrackName ) } else { - logError( sf2Instrument::tr( "A soundfont %1 could not be loaded." ).arg( QFileInfo( _sf2File ).baseName() ) ); + collectErrorForUI( sf2Instrument::tr( "A soundfont %1 could not be loaded." ).arg( QFileInfo( _sf2File ).baseName() ) ); // TODO: Why is the filename missing when the file does not exist? } } diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 6a15af552..0faae95c8 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -262,7 +262,7 @@ void vestigeInstrument::loadFile( const QString & _file ) m_pluginMutex.unlock(); closePlugin(); delete tf; - logError( VstPlugin::tr( "The VST plugin %1 could not be loaded." ).arg( m_pluginDLL ) ); + collectErrorForUI( VstPlugin::tr( "The VST plugin %1 could not be loaded." ).arg( m_pluginDLL ) ); return; } diff --git a/src/core/Plugin.cpp b/src/core/Plugin.cpp index 24c988e3c..253df8856 100644 --- a/src/core/Plugin.cpp +++ b/src/core/Plugin.cpp @@ -125,7 +125,7 @@ Plugin * Plugin::instantiate( const QString & pluginName, Model * parent, return inst; } -void Plugin::logError( QString err_msg ) +void Plugin::collectErrorForUI( QString err_msg ) { engine::mainWindow()->collectError( err_msg ); }