Skip to content

Commit

Permalink
dbhub: Fix possible crash
Browse files Browse the repository at this point in the history
This fixes a crash that occurs if there is an error while fetching
something other than a database and no database has been downloaded
before, e.g. when getting the root directory listing fails.
  • Loading branch information
MKleusberg committed Sep 25, 2017
1 parent 18bcbf1 commit 4dc5286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RemoteDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ void RemoteDatabase::gotError(QNetworkReply* reply, const QList<QSslError>& erro
QMessageBox::warning(0, qApp->applicationName(), message);

// Delete reply later, i.e. after returning from this slot function
m_progress->reset();
if(m_progress)
m_progress->reset();
reply->deleteLater();
}

Expand Down

0 comments on commit 4dc5286

Please sign in to comment.