Fix gallery crash on files deleted before thread was opened.
This commit is contained in:
parent
ea65f965f7
commit
084e9ffbe8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user