Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py

branch
6_1_x
changeset 4588
bfa7555f7407
parent 4021
195a471c327b
child 4632
ca310db386ed
equal deleted inserted replaced
4587:223ae735fea9 4588:bfa7555f7407
514 Private slot to select the output directory for the QtHelp files. 514 Private slot to select the output directory for the QtHelp files.
515 515
516 It displays a directory selection dialog to 516 It displays a directory selection dialog to
517 select the directory the QtHelp files are written to. 517 select the directory the QtHelp files are written to.
518 """ 518 """
519 startDir = Utilities.fromNativeSeparators(self.qtHelpDirEdit.text())
520 if not startDir:
521 startDir = Utilities.fromNativeSeparators(self.ppath)
519 directory = E5FileDialog.getExistingDirectory( 522 directory = E5FileDialog.getExistingDirectory(
520 self, 523 self,
521 self.tr("Select output directory for QtHelp files"), 524 self.tr("Select output directory for QtHelp files"),
522 self.qtHelpDirEdit.text(), 525 startDir,
523 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 526 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
524 527
525 if directory: 528 if directory:
526 # make it relative, if it is a subdirectory of the project path 529 # make it relative, if it is a subdirectory of the project path
527 dn = Utilities.toNativeSeparators(directory) 530 dn = Utilities.toNativeSeparators(directory)

eric ide

mercurial