From 1263f4d12e9016408ff04efc6cfa06903110bb4a Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 31 Oct 2019 11:03:35 +0100 Subject: [PATCH] Fix issue 99 --- nw/gui/export.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nw/gui/export.py b/nw/gui/export.py index 1032bb08..d9f3b7e9 100644 --- a/nw/gui/export.py +++ b/nw/gui/export.py @@ -213,7 +213,7 @@ class GuiExport(QDialog): # If we've reached this point, we're also running Pandoc - if self._callPandoc(tFormat, pFormat): + if self._callPandoc(saveTo, tFormat, pFormat): self.exportProgress.setValue(nItems) self.exportStatus.setText("Pandoc conversion complete") logger.verbose("Pandoc conversion complete") @@ -225,7 +225,7 @@ class GuiExport(QDialog): return True - def _callPandoc(self, inFmt, outFmt): + def _callPandoc(self, inFile, inFmt, outFmt): pFmt = { GuiExportPandoc.FMT_ODT : "odt", @@ -246,7 +246,6 @@ class GuiExport(QDialog): ), nwAlert.ERROR) return False - inFile = self.tabMain.exportPath.text() outFile = path.splitext(inFile)[0]+GuiExportPandoc.FMT_EXT[outFmt] fileName = path.basename(outFile)