diff options
-rw-r--r-- | ranger/ext/img_display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index d0a371f4..59887158 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -131,7 +131,8 @@ class W3MImageDisplayer(ImageDisplayer): filename = path) def quit(self): - if self.is_initialized: + if self.is_initialized and self.process \ + and self.process.poll() is not None: self.process.kill() class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): |