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-10-04 01:20:59 +0200
commit779805dbc51e4684eae9ca6a579acd66ed8463b6 (patch)
treeb9d0e2d5e33f57523535d166e34bf6d6a499a99e
parentbaa866aa2cccdc4b0015e8c80be1178e4a8ea6c9 (diff)
downloadranger-779805dbc51e4684eae9ca6a579acd66ed8463b6.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):
='#n119'>119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222