mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-03 00:45:56 +00:00
system source, some code improvements
This commit is contained in:
@ -12,7 +12,7 @@ QReplyTimeout::QReplyTimeout(QNetworkReply *reply, const int timeout)
|
||||
|
||||
void QReplyTimeout::timeout()
|
||||
{
|
||||
QNetworkReply *reply = static_cast<QNetworkReply *>(parent());
|
||||
auto *reply = dynamic_cast<QNetworkReply *>(parent());
|
||||
if (reply->isRunning())
|
||||
reply->close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user