Skip to content

Commit

Permalink
Merge pull request #923 from Scille/gui-fix-clear-files-on-error
Browse files Browse the repository at this point in the history
[GUI] Clear display files on stat error
  • Loading branch information
Max-7 committed Jan 17, 2020
2 parents 27c46d0 + ae084a8 commit bca1809
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/920.bugfix.rst
@@ -0,0 +1 @@
Clear displayed files on stat error
6 changes: 5 additions & 1 deletion parsec/core/gui/files_widget.py
Expand Up @@ -688,7 +688,11 @@ def _on_folder_stat_success(self, job):
self.filter_files(self.line_edit_search.text())

def _on_folder_stat_error(self, job):
pass
self.table_files.clear()
if self.current_directory == FsPath("/"):
self.table_files.add_parent_workspace()
else:
self.table_files.add_parent_folder()

def _on_folder_create_success(self, job):
pass
Expand Down

0 comments on commit bca1809

Please sign in to comment.