Fix gallery crash on files deleted before thread was opened.

This commit is contained in:
ccd0 2015-01-23 21:42:08 -08:00
parent ea65f965f7
commit 084e9ffbe8
3 changed files with 40 additions and 40 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -81,7 +81,7 @@ Gallery =
for file in $$ '.post .file'
post = Get.postFromNode file
continue if post.file.isDead
continue if !post.file or post.file.isDead
Gallery.generateThumb post
# If no image to open is given, pick image we have scrolled to.
if !image and Gallery.fullIDs[post.fullID]
@ -333,4 +333,4 @@ Gallery =
$.on delayInput, 'change', $.cb.value
subEntries.push el: delayLabel
subEntries
subEntries