Skip to content

Commit

Permalink
Trim leading and trailing spaces from WMS settings when storing them.
Browse files Browse the repository at this point in the history
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/qgis@5233 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 8, 2006
1 parent a4aff07 commit e347705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsnewhttpconnection.cpp
Original file line number Diff line number Diff line change
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 e347705

Please sign in to comment.