391 if fpath.exists(): |
391 if fpath.exists(): |
392 res = EricMessageBox.yesNo( |
392 res = EricMessageBox.yesNo( |
393 self, |
393 self, |
394 self.tr("Save Diff"), |
394 self.tr("Save Diff"), |
395 self.tr( |
395 self.tr( |
396 "<p>The patch file <b>{0}</b> already exists." " Overwrite it?</p>" |
396 "<p>The patch file <b>{0}</b> already exists. Overwrite it?</p>" |
397 ).format(fpath), |
397 ).format(fpath), |
398 icon=EricMessageBox.Warning, |
398 icon=EricMessageBox.Warning, |
399 ) |
399 ) |
400 if not res: |
400 if not res: |
401 return |
401 return |