summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-07-20 12:08:18 +0200
committerhut <hut@lepus.uberspace.de>2015-07-20 12:08:18 +0200
commit6e31e96f108a2339c52631e1d42a48e22234ad82 (patch)
treef005cdaf9dfc8ba9dc1a414f17fcc3f7fd67359b
parent3f64bb68ffb16367d7fbda670e18a03f25b784cc (diff)
downloadranger-6e31e96f108a2339c52631e1d42a48e22234ad82.tar.gz
ext.img_display: bugfix in quit(), follow-up to 3f64bb6
-rw-r--r--ranger/ext/img_display.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index 59887158..2d8504fc 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -131,8 +131,7 @@ class W3MImageDisplayer(ImageDisplayer):
                 filename = path)
 
     def quit(self):
-        if self.is_initialized and self.process \
-                and self.process.poll() is not None:
+        if self.is_initialized and self.process and self.process.poll() is None:
             self.process.kill()
 
 class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware):