backport e04570cc89d30f38430a5e71cfb795971c40afe0

This commit is contained in:
Tom Kralidis 2015-02-23 10:42:40 -05:00
parent 418eff9e25
commit 22efb06b9a

View File

@ -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