Navigation Menu

Skip to content

Commit

Permalink
Improved port handling for wfs
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6952 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 22, 2007
1 parent a1b7d7f commit df895f1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/providers/wfs/qgswfsdata.cpp
Expand Up @@ -52,16 +52,17 @@ int QgsWFSData::getWFSData()

//separate host from query string
QUrl requestUrl(mUri);
mHttp.setHost(requestUrl.host(), requestUrl.port());
int portNr = requestUrl.port();
if(portNr != -1)
{
mHttp.setHost(requestUrl.host(), portNr);
}
else
{
mHttp.setHost(requestUrl.host());
}
mHttp.get(mUri);

//just for a test
//QProgressDialog pd;
//pd.setWindowModality(Qt::WindowModal);
//pd.setMaximum(150000000); //shows busy indocator
//QObject::connect(&mHttp, SIGNAL(dataReadProgress(int,int)), &pd, SLOT(setValue(int)));
//pd.show();

//loop to read the data
QByteArray readData;
int atEnd = 0;
Expand Down

0 comments on commit df895f1

Please sign in to comment.