Kaydet (Commit) 55646df8 authored tarafından Nick Treleaven's avatar Nick Treleaven

Windows: Fix detecting a changed file on opening from command-line.

The file timestamp can actually be in advance of the current time in
this case.
üst e9021f21
......@@ -3017,10 +3017,11 @@ gboolean document_check_disk_status(GeanyDocument *doc, gboolean force)
/* doc may be closed now */
ret = TRUE;
}
else if (G_UNLIKELY(! use_gio_filemon && /* ignore these checks when using GIO */
(doc->priv->mtime > cur_time || st.st_mtime > cur_time)))
else if (! use_gio_filemon && /* ignore check when using GIO */
doc->priv->mtime > cur_time)
{
g_warning("%s: Something is wrong with the time stamps.", G_STRFUNC);
/* Note: on Windows st.st_mtime can be newer than cur_time */
}
else if (doc->priv->mtime < st.st_mtime)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment