mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
prevent CSW connection names with "/" to be set
This commit is contained in:
parent
e815105550
commit
e04570cc89
@ -57,6 +57,11 @@ class NewConnectionDialog(QDialog, BASE_CLASS):
|
||||
self.tr('Both Name and URL must be provided'))
|
||||
return
|
||||
|
||||
if '/' in conn_name:
|
||||
QMessageBox.warning(self, self.tr('Save connection'),
|
||||
self.tr('Name cannot contain \'/\''))
|
||||
return
|
||||
|
||||
if conn_name is not None:
|
||||
key = '/MetaSearch/%s' % conn_name
|
||||
keyurl = '%s/url' % key
|
||||
|
Loading…
x
Reference in New Issue
Block a user