aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index df2ad3d0..6a1735e8 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -334,7 +334,7 @@ local function update_modified_file()
local utf8_filename = buffer.filename
local filename = utf8_filename:iconv(_CHARSET, 'UTF-8')
local attributes = lfs.attributes(filename)
- if not attributes then return end
+ if not attributes or not buffer.modification_time then return end
if buffer.modification_time < attributes.modification then
if gui.dialog('yesno-msgbox',
'--title', L('Reload?'),