[longomatch] Fix exception setting fake projects' file



commit a377713c6838cf954589a6dfdedf8ea01d96d057
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Apr 21 11:32:58 2013 +0200

    Fix exception setting fake projects' file

 LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs 
b/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
index c7dd792..d88c7e5 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectDetailsWidget.cs
@@ -290,7 +290,7 @@ namespace LongoMatch.Gui.Component
                        var desc = project.Description;
                        /* In case the framerate changed, update each play with the new
                         * framerate */
-                       if (desc.File.Fps != mFile.Fps) {
+                       if (desc.File != null && desc.File.Fps != mFile.Fps) {
                                foreach (Play play in project.AllPlays ()) {
                                        play.Fps = mFile.Fps;
                                }


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