Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def requestFinished(self):
reply = self.sender()
self.buttonBox.setEnabled(False)
if reply.error() != QNetworkReply.NoError:
self.mResult = self.http.errorString()
self.mResult = reply.errorString()
self.reject()
del reply
return
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginsortfilterproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int QgsPluginSortFilterProxyModel::countWithCurrentStatus( )
for ( int i = 0; i < sourceModel()->rowCount(); ++i )
{
QModelIndex idx = sourceModel()->index( i, 0 );
if ( filterByStatus( idx ) )
if ( filterByStatus( idx ) && sourceModel()->data( idx, SPACER_ROLE ).toString().isEmpty() )
{
result++ ;
}
Expand Down
5 changes: 4 additions & 1 deletion src/core/qgsnetworkaccessmanager.cpp
Original file line number Diff line number Diff line change
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