summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-22 18:37:25 +0100
committerhut <hut@lavabit.com>2010-03-22 18:37:25 +0100
commitfe14923beb97ec60c65e5eb6f5cb9ee0bc303e15 (patch)
treed880739183180da891b3e3b74fbce84368c52953 /ranger
parentfde932f216932009fc7cdb1b362012651c03468f (diff)
downloadranger-fe14923beb97ec60c65e5eb6f5cb9ee0bc303e15.tar.gz
widgets.browsercolumn: don't load preview when its turned off
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 6e6f2f5e..4575b42c 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -124,7 +124,8 @@ class BrowserColumn(Pager):
 			self.need_redraw = True
 			self.old_dir = self.target
 
-		if self.target and self.target.is_directory:
+		if self.target and self.target.is_directory \
+				and self.settings.preview_directories:
 			if self.target.pointed_obj != self.old_cf:
 				self.need_redraw = True
 				self.old_cf = self.target.pointed_obj