Skip to content

Commit

Permalink
fix #8159
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 25, 2013
1 parent 9d2b8f2 commit 24bbd48
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/qgsnetworkaccessmanager.cpp
Expand Up @@ -132,11 +132,8 @@ QNetworkReply *QgsNetworkAccessManager::createRequest( QNetworkAccessManager::Op
emit requestCreated( reply );

// abort request, when network timeout happens
QTimer *timer = new QTimer( reply );
connect( timer, SIGNAL( timeout() ), this, SLOT( abortRequest() ) );

QSettings s;
timer->start( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt() );
QTimer::singleShot( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt(), this, SLOT( abortRequested() ) );

return reply;
}
Expand Down

0 comments on commit 24bbd48

Please sign in to comment.