about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorseebye <seebye@users.noreply.github.com>2018-08-28 21:22:39 +0200
committerseebye <seebye@users.noreply.github.com>2018-08-28 21:22:39 +0200
commit87727172c18f7a3610137dfb89662964477333a5 (patch)
treed79ab7e2304f77fe036b68ded82bfc9f70f0cb35
parentaa3033c287aa461a161782c07d508b946eac5ed7 (diff)
downloadranger-87727172c18f7a3610137dfb89662964477333a5.tar.gz
quit image displayer on suspending ui
-rw-r--r--ranger/gui/ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 4f76dfab..9a326956 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -136,6 +136,9 @@ class UI(  # pylint: disable=too-many-instance-attributes,too-many-public-method
             self.vcsthread.pause()
             self.vcsthread.paused.wait()
 
+        if self.fm.image_displayer:
+            self.fm.image_displayer.quit()
+
         self.win.keypad(0)
         curses.nocbreak()
         curses.echo()