From 1308152a9e8160e4e53f124e2eacf38df5321685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 5 Mar 2018 21:15:37 -0300 Subject: [PATCH] AudioOutput: Create text to speech in constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/Audio/AudioOutput.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audio/AudioOutput.cc b/src/Audio/AudioOutput.cc index 6a9e9411ea..cb04eb6087 100644 --- a/src/Audio/AudioOutput.cc +++ b/src/Audio/AudioOutput.cc @@ -18,8 +18,8 @@ AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox) : QGCTool(app, toolbox) + , _tts(new QTextToSpeech(this)) { - _tts = new QTextToSpeech(this); connect(_tts, &QTextToSpeech::stateChanged, this, &AudioOutput::_stateChanged); } -- GitLab