summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-11 07:28:10 +0200
committerhut <hut@lavabit.com>2010-10-11 07:28:10 +0200
commit6ab2c84a6b3b8d015f9e808f6fbba5846677e9f7 (patch)
tree1b8f4c02227185af1aa9370841e11dc05fe29bcd
parente3ad1e7ecdedcd3f8badec20b243ab2079262e98 (diff)
downloadranger-6ab2c84a6b3b8d015f9e808f6fbba5846677e9f7.tar.gz
fsobject.file: fix preview_files option
-rw-r--r--ranger/fsobject/file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/fsobject/file.py b/ranger/fsobject/file.py
index 4de77d80..5fd90b96 100644
--- a/ranger/fsobject/file.py
+++ b/ranger/fsobject/file.py
@@ -77,14 +77,14 @@ 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:
 			return False
 		if not self.accessible:
 			return False
+		if self.fm.settings.preview_script:
+			return True
 		if self.image or self.container:
 			return False
 		if PREVIEW_WHITELIST.search(self.basename):