Skip to content
Browse files

Allow to cancel server connections list modification

(cherry picked from commit ca89d34)
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 4, 2020
1 parent f42360c commit 1ddf3bf90150d5dbd270a42086b2c6b1b6b79f57
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/MetaSearch/dialogs/
@@ -735,9 +735,11 @@ def add_to_ows(self):
if sname in keys: # duplicate found
msg ='Connection {0} exists. Overwrite?').format(sname)
res = QMessageBox.warning(self,'Saving server'), msg,
QMessageBox.Yes | QMessageBox.No)
if res != QMessageBox.Yes: # assign new name with serial
QMessageBox.Yes | QMessageBox.No | QMessageBox.Cancel)
if res == QMessageBox.No: # assign new name with serial
sname = serialize_string(sname)
elif res == QMessageBox.Cancel:

# no dups detected or overwrite is allowed
if caller in ['mActionAddAms', 'mActionAddAfs']:

0 comments on commit 1ddf3bf

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