Skip to content

Commit

Permalink
fixed directory clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
vihdutta committed Apr 28, 2021
1 parent e05b9df commit 553cb91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .deepsource.toml

This file was deleted.

4 changes: 2 additions & 2 deletions autosortgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ def run_button_click(self):
nosourceerror.setIcon(QMessageBox.Critical)
nosourceerror.exec_()
try:
if os.path.isdir(self.destdir):
if os.path.isdir(self.destdir) and srcdirs:
worker = Worker(metadata, replace, fcmethod, sort, self.destdir)
worker.signals.result.connect(self.statement_returner)
self.threadpool.start(worker)
else:
elif not os.path.isdir(self.destdir):
nodestinationerror = QMessageBox()
nodestinationerror.setWindowTitle('Error')
nodestinationerror.setText('Destination directory field cannot be empty.')
Expand Down
File renamed without changes.

0 comments on commit 553cb91

Please sign in to comment.