440 if fpath.exists(): |
440 if fpath.exists(): |
441 res = EricMessageBox.yesNo( |
441 res = EricMessageBox.yesNo( |
442 self, |
442 self, |
443 self.tr("Save Diff"), |
443 self.tr("Save Diff"), |
444 self.tr("<p>The patch file <b>{0}</b> already exists." |
444 self.tr("<p>The patch file <b>{0}</b> already exists." |
445 " Overwrite it?</p>").format(str(fpath)), |
445 " Overwrite it?</p>").format(fpath), |
446 icon=EricMessageBox.Warning) |
446 icon=EricMessageBox.Warning) |
447 if not res: |
447 if not res: |
448 return |
448 return |
449 |
449 |
450 eol = ericApp().getObject("Project").getEolString() |
450 eol = ericApp().getObject("Project").getEolString() |
455 EricMessageBox.critical( |
455 EricMessageBox.critical( |
456 self, self.tr('Save Diff'), |
456 self, self.tr('Save Diff'), |
457 self.tr( |
457 self.tr( |
458 '<p>The patch file <b>{0}</b> could not be saved.' |
458 '<p>The patch file <b>{0}</b> could not be saved.' |
459 '<br>Reason: {1}</p>') |
459 '<br>Reason: {1}</p>') |
460 .format(str(fpath), str(why))) |
460 .format(fpath, str(why))) |
461 |
461 |
462 @pyqtSlot() |
462 @pyqtSlot() |
463 def on_refreshButton_clicked(self): |
463 def on_refreshButton_clicked(self): |
464 """ |
464 """ |
465 Private slot to refresh the display. |
465 Private slot to refresh the display. |