Permalink
Browse files

dbhub: Fix possible crash

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 4dc52865962414b2754c5a6db6ad68c0958f0eb0
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/RemoteDatabase.cpp
@@ -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();
}

0 comments on commit 4dc5286

Please sign in to comment.