renamed method logError to collectErrorForUI

This commit is contained in:
grindhold
2014-11-21 19:02:27 +01:00
parent f954b07958
commit 61a380a2d4
5 changed files with 5 additions and 5 deletions

View File

@@ -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:

View File

@@ -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;
}

View File

@@ -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?
}
}

View File

@@ -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;
}

View File

@@ -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 );
}