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:
Tobias Doerffel
2009-10-19 01:03:22 +02:00
parent a9d24d34f2
commit 05b1325c09

View File

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