336 if fpath.exists(): |
336 if fpath.exists(): |
337 res = EricMessageBox.yesNo( |
337 res = EricMessageBox.yesNo( |
338 self, |
338 self, |
339 self.tr("Save regular expression"), |
339 self.tr("Save regular expression"), |
340 self.tr("<p>The file <b>{0}</b> already exists." |
340 self.tr("<p>The file <b>{0}</b> already exists." |
341 " Overwrite it?</p>").format(str(fpath)), |
341 " Overwrite it?</p>").format(fpath), |
342 icon=EricMessageBox.Warning) |
342 icon=EricMessageBox.Warning) |
343 if not res: |
343 if not res: |
344 return |
344 return |
345 |
345 |
346 try: |
346 try: |