[Companion][downloadDialog] Canceling the download dialog during download now terminates the active network request and removes the file.

This commit is contained in:
Max Paperno
2018-07-16 18:37:00 -04:00
parent 71fd6dfa47
commit 989abd017e
2 changed files with 34 additions and 20 deletions
+4 -1
View File
@@ -39,6 +39,9 @@ public:
explicit downloadDialog(QWidget *parent = 0, QString src = "", QString tgt = "");
~downloadDialog();
public slots:
virtual void reject() override;
private slots:
void fileError();
void httpFinished();
@@ -54,7 +57,7 @@ private:
QNetworkAccessManager qnam;
QNetworkReply *reply;
QFile *file;
bool aborted;
};
#endif // _DOWNLOADDIALOG_H_