Skip to content

Commit 24bbd48

Browse files
committed
fix #8159
1 parent 9d2b8f2 commit 24bbd48

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/qgsnetworkaccessmanager.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,8 @@ QNetworkReply *QgsNetworkAccessManager::createRequest( QNetworkAccessManager::Op
132132
emit requestCreated( reply );
133133

134134
// abort request, when network timeout happens
135-
QTimer *timer = new QTimer( reply );
136-
connect( timer, SIGNAL( timeout() ), this, SLOT( abortRequest() ) );
137-
138135
QSettings s;
139-
timer->start( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt() );
136+
QTimer::singleShot( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt(), this, SLOT( abortRequested() ) );
140137

141138
return reply;
142139
}

0 commit comments

Comments
 (0)