diff --git a/src/web/exportdialog.cpp b/src/web/exportdialog.cpp index 4cda414..dcf8647 100644 --- a/src/web/exportdialog.cpp +++ b/src/web/exportdialog.cpp @@ -75,7 +75,8 @@ void ExportDialog::exportFinished(QNetworkReply *reply) // if (_msgReply.get() == reply) { - _ui->webView->setHtml(QString::fromUtf8(reply->readAll())); + if (reply->size()) + _ui->webView->setHtml(QString::fromUtf8(reply->readAll())); if (reply->error() == QNetworkReply::NoError) _ui->exportButton->setDisabled(false);