summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-19 16:08:54 +0100
committerhut <hut@lavabit.com>2013-02-19 16:08:54 +0100
commit5bc4cb756c300795144edd8e1ea656a57c880f5d (patch)
tree281e4a34e537605b13339508ab58745e4cbd2feb
parent7a66f1744c646d9f42e003cc992696ab10aeffda (diff)
downloadranger-5bc4cb756c300795144edd8e1ea656a57c880f5d.tar.gz
widgets/pager: simpler Pager.destroy()
-rw-r--r--ranger/gui/widgets/pager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index 93f77a08..d6c35a3b 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -53,8 +53,7 @@ class Pager(Widget):
             self.source.close()
 
     def destroy(self):
-        if self.image_drawn:
-            img_display.clear(self.x, self.y, self.wid, self.hei)
+        self.clear_image(force=True)
 
     def finalize(self):
         self.fm.ui.win.move(self.y, self.x)