Skip to content

Commit

Permalink
Pre-fill the filename in Export
Browse files Browse the repository at this point in the history
Fixes #469
  • Loading branch information
xgouchet committed Oct 2, 2019
1 parent b33647d commit a3c6450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReText/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ def saveOdf(self):
except Exception:
return self.printError()
fileName = QFileDialog.getSaveFileName(self,
self.tr("Export document to ODT"), "",
self.tr("Export document to ODT"), self.currentTab.getBaseName() + ".odt",
self.tr("OpenDocument text files (*.odt)"))[0]
if not QFileInfo(fileName).suffix():
fileName += ".odt"
Expand All @@ -960,7 +960,7 @@ def saveOdf(self):

def saveFileHtml(self):
fileName = QFileDialog.getSaveFileName(self,
self.tr("Save file"), "",
self.tr("Save file"), self.currentTab.getBaseName() + ".html",
self.tr("HTML files (*.html *.htm)"))[0]
if fileName:
self.saveHtml(fileName)
Expand Down

0 comments on commit a3c6450

Please sign in to comment.