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."""