summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-03-19 22:40:59 +0100
committerhut <hut@lepus.uberspace.de>2014-03-19 22:41:30 +0100
commitd807aa384dddd49aada76c124acbfd2bca93fb59 (patch)
tree7a2ced03637c72aaa086d5eb7de7a9f81ecffa28
parent61390d7b13184d9ae845e2d6bf5b451d0f20a938 (diff)
downloadranger-d807aa384dddd49aada76c124acbfd2bca93fb59.tar.gz
ext.img_display: fixed ImageDisplayer.quit when crashing in initialize
-rw-r--r--ranger/ext/img_display.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index d470fb24..a70fe366 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -30,12 +30,12 @@ class ImageDisplayer(object):
 
     def initialize(self):
         """start w3mimgdisplay"""
-        self.is_initialized = True
         self.binary_path = os.environ.get("W3MIMGDISPLAY_PATH", None)
         if not self.binary_path:
             self.binary_path = W3MIMGDISPLAY_PATH
         self.process = Popen([self.binary_path] + W3MIMGDISPLAY_OPTIONS,
                 stdin=PIPE, stdout=PIPE, universal_newlines=True)
+        self.is_initialized = True
 
     def draw(self, path, start_x, start_y, width, height):
         """Draw an image at the given coordinates."""
pre>
3dbefa71 ^

22bb7e35 ^
3dbefa71 ^
22bb7e35 ^

3dbefa71 ^


22bb7e35 ^
3dbefa71 ^
22bb7e35 ^
3dbefa71 ^
22bb7e35 ^


3dbefa71 ^
22bb7e35 ^








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
56
57
58
59