[chronojump] At select a person, if it has an image, check file exists. Solves problems with latin chars on windo



commit 0493908893dd0468e8b4dc427f5c84579445887c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Mar 4 16:17:39 2022 +0100

    At select a person, if it has an image, check file exists. Solves problems with latin chars on windows 
paths.

 src/gui/app1/chronojumpPersons.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index 61bdbd1bc..5c2331551 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -65,7 +65,7 @@ public partial class ChronoJumpWindow
                label_top_encoder_person_name.UseMarkup = true;
 
                string filenameMini = Util.UserPhotoURL(true, currentPerson.UniqueID);
-               if(filenameMini != "")
+               if(filenameMini != "" && Util.FileExists(filenameMini))
                {
                        Pixbuf pixbuf = new Pixbuf (filenameMini);
                        image_current_person.Pixbuf = pixbuf;


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