[Xfce4-commits] [apps/mousepad] 01/01: Reset modification time when new filename is set (Bug #10498)

noreply at xfce.org noreply at xfce.org
Mon May 27 00:28:47 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit e0e86e870e4fc17b73bed48cb1ec984fecb1c179
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date:   Sun May 26 18:02:47 2019 +0200

    Reset modification time when new filename is set (Bug #10498)
---
 mousepad/mousepad-file.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mousepad/mousepad-file.c b/mousepad/mousepad-file.c
index 88aacba..453d48a 100644
--- a/mousepad/mousepad-file.c
+++ b/mousepad/mousepad-file.c
@@ -285,6 +285,10 @@ mousepad_file_set_filename (MousepadFile *file,
 {
   g_return_if_fail (MOUSEPAD_IS_FILE (file));
 
+  /* reset the stored modification time when a new filename set */
+  if (g_strcmp0 (file->filename, filename) != 0)
+    file->mtime = 0;
+
   /* free the old filename */
   g_free (file->filename);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list