339 if QFileInfo(fname).exists(): |
339 if QFileInfo(fname).exists(): |
340 res = E5MessageBox.yesNo(self, |
340 res = E5MessageBox.yesNo(self, |
341 self.trUtf8("Save Diagram"), |
341 self.trUtf8("Save Diagram"), |
342 self.trUtf8("<p>The file <b>{0}</b> already exists." |
342 self.trUtf8("<p>The file <b>{0}</b> already exists." |
343 " Overwrite it?</p>").format(fname), |
343 " Overwrite it?</p>").format(fname), |
344 type_ = E5MessageBox.Warning) |
344 icon = E5MessageBox.Warning) |
345 if not res: |
345 if not res: |
346 return |
346 return |
347 |
347 |
348 success = self.saveImage(fname, QFileInfo(fname).suffix().upper()) |
348 success = self.saveImage(fname, QFileInfo(fname).suffix().upper()) |
349 if not success: |
349 if not success: |