13 |
13 |
14 from PyQt4.QtCore import * |
14 from PyQt4.QtCore import * |
15 from PyQt4.QtGui import * |
15 from PyQt4.QtGui import * |
16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
18 from E5Gui import E5MessageBox |
18 from E5Gui import E5MessageBox, E5FileDialog |
19 |
19 |
20 from .SvnDialogMixin import SvnDialogMixin |
20 from .SvnDialogMixin import SvnDialogMixin |
21 from .Ui_SvnDiffDialog import Ui_SvnDiffDialog |
21 from .Ui_SvnDiffDialog import Ui_SvnDiffDialog |
22 |
22 |
23 import Utilities |
23 import Utilities |
311 else: |
311 else: |
312 fname = dname |
312 fname = dname |
313 else: |
313 else: |
314 fname = self.vcs.splitPath(self.filename)[0] |
314 fname = self.vcs.splitPath(self.filename)[0] |
315 |
315 |
316 fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( |
316 fname, selectedFilter = E5FileDialog.getSaveFileNameAndFilter( |
317 self, |
317 self, |
318 self.trUtf8("Save Diff"), |
318 self.trUtf8("Save Diff"), |
319 fname, |
319 fname, |
320 self.trUtf8("Patch Files (*.diff)"), |
320 self.trUtf8("Patch Files (*.diff)"), |
321 None, |
321 None, |
322 QFileDialog.Options(QFileDialog.DontConfirmOverwrite | |
322 E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite)) |
323 QFileDialog.DontUseNativeDialog)) |
|
324 |
323 |
325 if not fname: |
324 if not fname: |
326 return # user aborted |
325 return # user aborted |
327 |
326 |
328 ext = QFileInfo(fname).suffix() |
327 ext = QFileInfo(fname).suffix() |