diff --git a/3rdparty/qite b/3rdparty/qite index 12743288a..8b005dc47 160000 --- a/3rdparty/qite +++ b/3rdparty/qite @@ -1 +1 @@ -Subproject commit 12743288a80a2e6fdf8541ce715105c23249cb5b +Subproject commit 8b005dc4710bbc58b02450168972b207c7affc2c diff --git a/src/msgmle.cpp b/src/msgmle.cpp index 3870f590f..3e1eaf028 100644 --- a/src/msgmle.cpp +++ b/src/msgmle.cpp @@ -20,7 +20,7 @@ #include "msgmle.h" #include "htmltextcontroller.h" -#include "psiiconset.h" +#include "iconset.h" #include "psioptions.h" #include "qiteaudiorecorder.h" #include "shortcutmanager.h" @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -685,7 +686,10 @@ void ChatEdit::addSoundRecButton() md.setData("application/x-psi-amplitudes", recorder_->amplitudes()); emit fileSharingRequested(&md); }); - connect(recorder_.get(), &AudioRecorder::recordingStarted, this, [this]() { + connect(recorder_.get(), &AudioRecorder::stateChanged, this, [this]() { + if (recorder_->state() != AudioRecorder::RecordingState) { + return; + } recButton_->setIcon(IconsetFactory::iconPixmap("psi/mic_rec", fontInfo().pixelSize() * 1.5)); overlay_->setVisible(true); timeout_ = TIMEOUT;