Skip to content
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: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 8, 2006
1 parent a4aff07 commit e347705dd7137abaad7bbde91045a8e3fc09da65
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());


0 comments on commit e347705

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