259 if fpath.exists(): |
259 if fpath.exists(): |
260 res = EricMessageBox.yesNo( |
260 res = EricMessageBox.yesNo( |
261 self, |
261 self, |
262 self.tr("Save Diagram"), |
262 self.tr("Save Diagram"), |
263 self.tr("<p>The file <b>{0}</b> already exists." |
263 self.tr("<p>The file <b>{0}</b> already exists." |
264 " Overwrite it?</p>").format(str(fpath)), |
264 " Overwrite it?</p>").format(fpath), |
265 icon=EricMessageBox.Warning) |
265 icon=EricMessageBox.Warning) |
266 if not res: |
266 if not res: |
267 return |
267 return |
268 filename = str(fpath) |
268 filename = str(fpath) |
269 |
269 |