Collect effects errors to show on summary window
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "ControllerConnection.h"
|
||||
#include "MemoryManager.h"
|
||||
#include "ValueBuffer.h"
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
|
||||
@@ -74,12 +75,11 @@ LadspaEffect::LadspaEffect( Model * _parent,
|
||||
Ladspa2LMMS * manager = Engine::getLADSPAManager();
|
||||
if( manager->getDescription( m_key ) == NULL )
|
||||
{
|
||||
if( !Engine::suppressMessages() )
|
||||
if ( Engine::hasGUI() )
|
||||
{
|
||||
QMessageBox::warning( 0, tr( "Effect" ),
|
||||
tr( "Unknown LADSPA plugin %1 requested." ).
|
||||
arg( m_key.second ),
|
||||
QMessageBox::Ok, QMessageBox::NoButton );
|
||||
Engine::mainWindow()->collectError(
|
||||
tr( "Unknown LADSPA plugin %1 requested." ).arg(
|
||||
m_key.second ) );
|
||||
}
|
||||
setOkay( false );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user