Skip to content
Permalink
Browse files

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
g_j_m committed Apr 8, 2006
1 parent b1bc184 commit 965c86fe86ef078a7704dc11692d832c2bc0567d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsnewhttpconnection.cpp
@@ -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();
}

0 comments on commit 965c86f

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