forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user