diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-11-14 16:52:08 -0800 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2013-12-03 13:53:00 -0800 |
commit | ab1b314a84347b648fa0df6a9719f67a9fb54d54 (patch) | |
tree | 4bd019243a617070026c51783911518851cd28ad /qt-ui/subsurfacewebservices.h | |
parent | fa07f554e2894c7720a41c1fbb379743dd6c7285 (diff) | |
download | subsurface-ab1b314a84347b648fa0df6a9719f67a9fb54d54.tar.gz |
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>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r-- | qt-ui/subsurfacewebservices.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h index 0cd083001..05735f859 100644 --- a/qt-ui/subsurfacewebservices.h +++ b/qt-ui/subsurfacewebservices.h @@ -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; |