9575:635b6c5a36e1 | 9576:be9f8e7e42e0 |
---|---|
2224 if bookmarks: | 2224 if bookmarks: |
2225 bookmark, ok = QInputDialog.getItem( | 2225 bookmark, ok = QInputDialog.getItem( |
2226 self, | 2226 self, |
2227 self.tr("Switch"), | 2227 self.tr("Switch"), |
2228 self.tr( | 2228 self.tr( |
2229 "Select bookmark to switch to (leave empty to" " use revision):" | 2229 "Select bookmark to switch to (leave empty to use revision):" |
2230 ), | 2230 ), |
2231 [""] + bookmarks, | 2231 [""] + bookmarks, |
2232 0, | 2232 0, |
2233 False, | 2233 False, |
2234 ) | 2234 ) |
2872 if fpath.exists(): | 2872 if fpath.exists(): |
2873 res = EricMessageBox.yesNo( | 2873 res = EricMessageBox.yesNo( |
2874 self, | 2874 self, |
2875 self.tr("Save Diff"), | 2875 self.tr("Save Diff"), |
2876 self.tr( | 2876 self.tr( |
2877 "<p>The patch file <b>{0}</b> already exists." " Overwrite it?</p>" | 2877 "<p>The patch file <b>{0}</b> already exists. Overwrite it?</p>" |
2878 ).format(fpath), | 2878 ).format(fpath), |
2879 icon=EricMessageBox.Warning, | 2879 icon=EricMessageBox.Warning, |
2880 ) | 2880 ) |
2881 if not res: | 2881 if not res: |
2882 return | 2882 return |