From e8d83d205beb760a29337012d3a6df5b2a8be126 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 3 Aug 2017 08:37:41 +0200 Subject: [PATCH] Make sure QTextToSpeech is deleted at the right time --- src/plugins/secondary_backends/speech/speech.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/secondary_backends/speech/speech.cpp b/src/plugins/secondary_backends/speech/speech.cpp index f1b51fd..f6aa964 100644 --- a/src/plugins/secondary_backends/speech/speech.cpp +++ b/src/plugins/secondary_backends/speech/speech.cpp @@ -1,11 +1,12 @@ #include "speech.h" +#include #include #include Speech::Speech() : Snore::SnoreSecondaryBackend() - , m_speech(new QTextToSpeech(this)) + , m_speech(new QTextToSpeech(qApp)) { connect(m_speech, &QTextToSpeech::stateChanged, this, [this](QTextToSpeech::State state) { qCDebug(SNORE) << state;