Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Follow up 24bbd48
  • Loading branch information
borysiasty committed Jun 25, 2013
1 parent 9621436 commit 6cfe4a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/qgsnetworkaccessmanager.cpp
Expand Up @@ -132,8 +132,11 @@ 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;
QTimer::singleShot( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt(), this, SLOT( abortRequested() ) );
timer->setSingleShot( true );
timer->start( s.value( "/qgis/networkAndProxy/networkTimeout", "20000" ).toInt() );

return reply;
}
Expand Down

0 comments on commit 6cfe4a5

Please sign in to comment.