51 if not ext: |
51 if not ext: |
52 ex = selectedFilter.split("(*")[1].split(")")[0] |
52 ex = selectedFilter.split("(*")[1].split(")")[0] |
53 if ex: |
53 if ex: |
54 fn += ex |
54 fn += ex |
55 if QFileInfo(fn).exists(): |
55 if QFileInfo(fn).exists(): |
56 res = E5MessageBox.warning(self.editor, |
56 res = E5MessageBox.yesNo(self.editor, |
57 self.trUtf8("Export source"), |
57 self.trUtf8("Export source"), |
58 self.trUtf8("<p>The file <b>{0}</b> already exists.</p>") |
58 self.trUtf8("<p>The file <b>{0}</b> already exists." |
59 .format(fn), |
59 " Overwrite it?</p>").format(fn), |
60 QMessageBox.StandardButtons(\ |
60 type_ = E5MessageBox.Warning) |
61 QMessageBox.Abort | \ |
61 if not res: |
62 QMessageBox.Save), |
|
63 QMessageBox.Abort) |
|
64 if res == QMessageBox.Abort or res == QMessageBox.Cancel: |
|
65 return "" |
62 return "" |
66 |
63 |
67 fn = Utilities.toNativeSeparators(fn) |
64 fn = Utilities.toNativeSeparators(fn) |
68 |
65 |
69 return fn |
66 return fn |