summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-10 01:51:05 +0200
committerhut <hut@lavabit.com>2010-10-10 01:53:07 +0200
commit4f202b05fd31fbfeb85a382154f3c568467d4043 (patch)
tree980396397356233fcf032b1db3a4de264ed23ec1 /ranger
parentab3ecc707fa9f4243a02809c7de7a781dbf06b5a (diff)
downloadranger-4f202b05fd31fbfeb85a382154f3c568467d4043.tar.gz
fsobject.file: fixed has_preview method
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/file.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/fsobject/file.py b/ranger/fsobject/file.py
index 33b4e3d3..d0002a56 100644
--- a/ranger/fsobject/file.py
+++ b/ranger/fsobject/file.py
@@ -77,6 +77,8 @@ class File(FileSystemObject):
 		return False
 
 	def has_preview(self):
+		if self.fm.settings.preview_script:
+			return True
 		if not self.fm.settings.preview_files:
 			return False
 		if self.is_socket or self.is_fifo or self.is_device:
@@ -84,7 +86,7 @@ class File(FileSystemObject):
 		if not self.accessible:
 			return False
 		if self.image or self.container:
-			return True
+			return False
 		if PREVIEW_WHITELIST.search(self.basename):
 			return True
 		if PREVIEW_BLACKLIST.search(self.basename):