Skip to content
Permalink
Browse files

Follow up 24bbd48

  • Loading branch information
borysiasty committed Jun 25, 2013
1 parent 9621436 commit 6cfe4a5fcf0298b27ba8f6f158d35fd478255fab
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsnetworkaccessmanager.cpp
@@ -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;
}

0 comments on commit 6cfe4a5

Please sign in to comment.
You can’t perform that action at this time.