Skip to content
Browse files

fix crash caused by decoding all MIME data formats in RichTextHtmlEdit

Under Qt 5.6.0 on Linux, if a program had a large image in its clipboard
that we tried to paste into Mumble's rich text editor, that program would

The problem code was only enabled in debug mode, so most users would
never have experienced this.
  • Loading branch information...
bontibon authored and mkrautz committed Apr 25, 2016
1 parent 25422e7 commit b347f7e70c85b885f210d88418736189994b41b6
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/mumble/RichTextEditor.cpp
@@ -85,8 +85,6 @@ void RichTextHtmlEdit::insertFromMimeData(const QMimeData *source) {

#ifndef QT_NO_DEBUG
qWarning() << "RichTextHtmlEdit::insertFromMimeData" << source->formats();
foreach(const QString &format, source->formats())
qWarning() << format << decodeMimeString(source->data(format));

if (source->hasImage()) {

0 comments on commit b347f7e

Please sign in to comment.
You can’t perform that action at this time.