393 if fpath.exists(): |
393 if fpath.exists(): |
394 res = EricMessageBox.yesNo( |
394 res = EricMessageBox.yesNo( |
395 self, |
395 self, |
396 self.tr("Save Diff"), |
396 self.tr("Save Diff"), |
397 self.tr("<p>The patch file <b>{0}</b> already exists." |
397 self.tr("<p>The patch file <b>{0}</b> already exists." |
398 " Overwrite it?</p>").format(str(fpath)), |
398 " Overwrite it?</p>").format(fpath), |
399 icon=EricMessageBox.Warning) |
399 icon=EricMessageBox.Warning) |
400 if not res: |
400 if not res: |
401 return |
401 return |
402 |
402 |
403 eol = ericApp().getObject("Project").getEolString() |
403 eol = ericApp().getObject("Project").getEolString() |
408 EricMessageBox.critical( |
408 EricMessageBox.critical( |
409 self, self.tr('Save Diff'), |
409 self, self.tr('Save Diff'), |
410 self.tr( |
410 self.tr( |
411 '<p>The patch file <b>{0}</b> could not be saved.' |
411 '<p>The patch file <b>{0}</b> could not be saved.' |
412 '<br>Reason: {1}</p>') |
412 '<br>Reason: {1}</p>') |
413 .format(str(fpath), str(why))) |
413 .format(fpath, str(why))) |
414 |
414 |
415 @pyqtSlot() |
415 @pyqtSlot() |
416 def on_refreshButton_clicked(self): |
416 def on_refreshButton_clicked(self): |
417 """ |
417 """ |
418 Private slot to refresh the display. |
418 Private slot to refresh the display. |