summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-06 16:53:16 +0100
committerhut <hut@lavabit.com>2010-11-06 16:53:38 +0100
commit1906cb606f9aa199b65aa768863efd46b3cbe837 (patch)
tree8af3ae5fb0b2a3eb7dfb3b03745fc832d9d6153c
parentfe1bf8548f6726ccb741ea2994edeca9085683f1 (diff)
downloadranger-1906cb606f9aa199b65aa768863efd46b3cbe837.tar.gz
widgets.statusbar: Reload permissions of current file on change
-rw-r--r--ranger/gui/widgets/statusbar.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index dc169af2..e1cba8eb 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -78,9 +78,10 @@ class StatusBar(Widget):
 				self.msg = None
 				self.need_redraw = True
 
-		try:
+		if self.env.cf:
+			self.env.cf.load_if_outdated()
 			ctime = self.env.cf.stat.st_ctime
-		except:
+		else:
 			ctime = -1
 
 		if not self.result: