From 9c7c63824f46f2f64ca33b45582abfcd33193cd8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 27 Oct 2010 21:10:27 -0400 Subject: Do not try to check for file updates if it cannot be read; core/file_io.lua --- core/file_io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/file_io.lua') 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?'), -- cgit v1.2.3