summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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):