Song: do not refresh FxMixerView when loading song in console mode
Calling FxMixerView::refreshDisplay causes LMMS to crash when running in console mode. Therefore explicitely check GUI mode before calling this function.
This commit is contained in:
@@ -912,8 +912,11 @@ void song::loadProject( const QString & _file_name )
|
||||
{
|
||||
engine::fxMixer()->restoreState( node.toElement() );
|
||||
|
||||
// refresh FxMixerView
|
||||
engine::fxMixerView()->refreshDisplay();
|
||||
if( engine::hasGUI() )
|
||||
{
|
||||
// refresh FxMixerView
|
||||
engine::fxMixerView()->refreshDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
node = node.nextSibling();
|
||||
|
||||
Reference in New Issue
Block a user