[chronojump] Fixed a possible crash on creating a person with previous images (from a moved db)



commit 2442731c7b452c4509174ea08848a218b1cb801b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Nov 10 20:21:45 2014 +0100

    Fixed a possible crash on creating a person with previous images (from a moved db)

 src/gui/chronojump.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 5fbc47c..f3450e9 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2591,14 +2591,14 @@ public partial class ChronoJumpWindow
                                                        Util.GetPhotoFileName(false, currentPerson.UniqueID));
                                } catch {
                                        File.Copy(Util.GetPhotoTempFileName(false), 
-                                                       Util.GetPhotoFileName(false, currentPerson.UniqueID));
+                                                       Util.GetPhotoFileName(false, currentPerson.UniqueID), 
true);
                                }
                                try {
                                        File.Move(Util.GetPhotoTempFileName(true), 
                                                        Util.GetPhotoFileName(true, currentPerson.UniqueID));
                                } catch {
-                                       File.Move(Util.GetPhotoTempFileName(true), 
-                                                       Util.GetPhotoFileName(true, currentPerson.UniqueID));
+                                       File.Copy(Util.GetPhotoTempFileName(true), 
+                                                       Util.GetPhotoFileName(true, currentPerson.UniqueID), 
true);
                                }
                        }
                        


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]