From 55548d58c096d9f8cd997129c8993dea0498f543 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 17 May 2009 00:00:16 +0200 Subject: [PATCH] AutomationRecorder: instantiate even in console-only mode Always create an instance of AutomationRecorder in Engine class as it is not related to GUI at all. Fixes crash when rendering a project in console-only mode. --- src/core/engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/engine.cpp b/src/core/engine.cpp index 8cbd31a8e..30bdef596 100644 --- a/src/core/engine.cpp +++ b/src/core/engine.cpp @@ -121,6 +121,8 @@ void engine::init( const bool _has_gui ) s_midiControlListener = new MidiControlListener(); + s_automationRecorder = new AutomationRecorder; + if( s_hasGUI ) { s_mainWindow = new mainWindow; @@ -131,7 +133,6 @@ void engine::init( const bool _has_gui ) s_bbEditor = new bbEditor( s_bbTrackContainer ); s_pianoRoll = new pianoRoll; s_automationEditor = new automationEditor; - s_automationRecorder = new AutomationRecorder; s_mainWindow->finalize(); }