239 if fpath.exists(): |
239 if fpath.exists(): |
240 res = EricMessageBox.yesNo( |
240 res = EricMessageBox.yesNo( |
241 self, |
241 self, |
242 self.tr("Save Diff"), |
242 self.tr("Save Diff"), |
243 self.tr("<p>The patch file <b>{0}</b> already exists." |
243 self.tr("<p>The patch file <b>{0}</b> already exists." |
244 " Overwrite it?</p>").format(str(fpath)), |
244 " Overwrite it?</p>").format(fpath), |
245 icon=EricMessageBox.Warning) |
245 icon=EricMessageBox.Warning) |
246 if not res: |
246 if not res: |
247 return |
247 return |
248 |
248 |
249 eol = ericApp().getObject("Project").getEolString() |
249 eol = ericApp().getObject("Project").getEolString() |
254 EricMessageBox.critical( |
254 EricMessageBox.critical( |
255 self, self.tr('Save Diff'), |
255 self, self.tr('Save Diff'), |
256 self.tr( |
256 self.tr( |
257 '<p>The patch file <b>{0}</b> could not be saved.' |
257 '<p>The patch file <b>{0}</b> could not be saved.' |
258 '<br>Reason: {1}</p>') |
258 '<br>Reason: {1}</p>') |
259 .format(str(fpath), str(why))) |
259 .format(fpath, str(why))) |
260 |
260 |
261 @pyqtSlot() |
261 @pyqtSlot() |
262 def on_refreshButton_clicked(self): |
262 def on_refreshButton_clicked(self): |
263 """ |
263 """ |
264 Private slot to refresh the display. |
264 Private slot to refresh the display. |