Set the download reply pointer to NULL after dismissing it

QNetworkReply might emit signals after it's been told to go away. We
don't want to change the status after that.

Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
Thiago Macieira 2013-11-14 16:52:08 -08:00
parent fa07f554e2
commit ab1b314a84
2 changed files with 42 additions and 4 deletions

View file

@ -24,8 +24,12 @@ private slots:
virtual void startUpload() = 0;
virtual void buttonClicked(QAbstractButton* button) = 0;
protected slots:
void updateProgress(qint64 current, qint64 total);
protected:
void resetState();
void connectSignalsForDownload(QNetworkReply *reply);
Ui::WebServices ui;
QNetworkReply *reply;