Added the wizard project location page

This commit is contained in:
Veronica K. B. Olsen
2020-07-11 15:48:31 +02:00
parent 1277e5025d
commit 8c895319e5
6 changed files with 114 additions and 25 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ from PyQt5.QtWidgets import (
QFileDialog, QFontDialog, QSpinBox
)
from nw.common import fuzzyTime
from nw.common import fuzzyTime, makeFileNameSafe
from nw.gui.custom import QSwitch
from nw.core import ToHtml
from nw.constants import (
@@ -623,7 +623,7 @@ class GuiBuildNovel(QDialog):
# Generate the file name
if fileExt:
cleanName = self.theProject.getFileSafeProjectName()
cleanName = makeFileNameSafe(self.theProject.projName)
fileName = "%s.%s" % (cleanName, fileExt)
saveDir = self.mainConf.lastPath
savePath = path.join(saveDir, fileName)