Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Trim leading and trailing spaces from WMS settings when storing them.
I have often found that cutting/pasting WMS url's from webpages that I
get extraneous spaces which then prevent wms from working.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5233 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 8, 2006
1 parent b1bc184 commit 965c86f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -67,9 +67,9 @@ void QgsNewHttpConnection::saveConnection()
QString baseKey = "/Qgis/connections-wms/";

baseKey += txtName->text();
settings.writeEntry(baseKey + "/url", txtUrl->text());
settings.writeEntry(baseKey + "/proxyhost", txtProxyHost->text());
settings.writeEntry(baseKey + "/proxyport", txtProxyPort->text());
settings.writeEntry(baseKey + "/url", txtUrl->text().trimmed());
settings.writeEntry(baseKey + "/proxyhost", txtProxyHost->text().trimmed());
settings.writeEntry(baseKey + "/proxyport", txtProxyPort->text().trimmed());

accept();
}
Expand Down

0 comments on commit 965c86f

Please sign in to comment.