Commit 61733b07 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that text is not empty

parent cc4f8f91
......@@ -2561,7 +2561,9 @@ void ViewerPrivate::slotHandleAttachment(int choice)
void ViewerPrivate::slotSpeakText()
{
const QString text = mViewer->selectedText();
mTextToSpeechWidget->say(text);
if (!text.isEmpty()) {
mTextToSpeechWidget->say(text);
}
}
void ViewerPrivate::slotCopyImageLocation()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment