Android: call cancel() instead of hide() in sdk download progressdialog

The proper use is to call cancel(), the dialog will be hiden after that.
Otherwise, it will not be cancel  and can get visible again.

Change-Id: Ifb2a00721571ce2bc8ded7c96e6b69e587020b34
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2020-02-20 18:13:26 +02:00
parent 44023c8f43
commit ad927dac85

View File

@@ -149,7 +149,7 @@ void AndroidSdkDownloader::cancel()
m_reply->deleteLater();
}
if (m_progressDialog)
m_progressDialog->hide();
m_progressDialog->cancel();
}
void AndroidSdkDownloader::cancelWithError(const QString &error)