about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 2300aa96..80db1aa5 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -777,7 +777,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			return
 
 		pager = self.ui.open_embedded_pager()
-		if self.thisfile.is_image():
+		if self.settings.preview_images and self.thisfile.is_image():
 			pager.set_image(self.thisfile.realpath)
 		else:
 			pager.set_source(self.thisfile.get_preview_source(pager.wid, pager.hei))
@@ -796,7 +796,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		pager = self.ui.browser.pager
 		path = file.realpath
 
-		if file.is_image():
+		if self.settings.preview_images and file.is_image():
 			pager.set_image(path)
 			return None