Skip to content

Commit

Permalink
Empty reply means no internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
hrobeers committed Dec 2, 2015
1 parent fb0a004 commit 6edb935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/exportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6edb935

Please sign in to comment.