Skip to content

Commit

Permalink
Fixed an error with adding papers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evildoor committed Nov 17, 2017
1 parent 6c3d04b commit 5fa3369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utils/Dataflow/030_PDFAnalyzer/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,8 @@ def add_papers(self, fnames=None, errors=None, n=None):
if fnames is None:
fnames = askopenfilenames(initialdir=cfg["WORK_DIR"],
filetypes=[("PDF files", ".pdf")])
if not fnames:
return False
errors = {}
n = 1
self.window.after(100, lambda: self.add_papers(fnames, errors, n))
Expand Down

0 comments on commit 5fa3369

Please sign in to comment.