diff options
author | hut <hut@lepus.uberspace.de> | 2015-02-17 20:09:06 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-02-17 20:09:06 +0100 |
commit | 5f1db740b6a956562023bf11facefb0c11f16e83 (patch) | |
tree | bf5e10b66d77ee29345ea5ad4a969e3c308d33d9 | |
parent | 45231bda1010421be002e5c485a07539edb0b140 (diff) | |
parent | 3630c8a928d242031ba5c67e3103abb4ac9253fa (diff) | |
download | ranger-5f1db740b6a956562023bf11facefb0c11f16e83.tar.gz |
Merge branch 'delete_previewed_file_fix' of https://github.com/Vifon/ranger
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index b3b8f50b..1167dab5 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -879,7 +879,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): pager = self.ui.get_pager() path = file.realpath - if not path: + if not path or not os.path.exists(path): return None if self.settings.preview_images and file.image: |