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-22 02:34:42 +0100
commitf44c4a886d8a984b6297a7847f87ef0e469e785b (patch)
tree136f6eb22fdcd477aa4489ce4a9eb2bed16c67c2
parentf05a2eda194142de77a62acb12fecc2ec6386c48 (diff)
downloadranger-f44c4a886d8a984b6297a7847f87ef0e469e785b.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 6fff7383..c51af0ff 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:
ut <hut@lavabit.com> 2010-01-14 02:39:40 +0100 added install instructions' href='/akspecs/ranger/commit/INSTALL?h=v1.8.0&id=f51bd48a141e4886a48c4f3d498a1c329bbaf193'>f51bd48a ^
0128bee7 ^
7582555b ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55