[longomatch] Update file set from selector on success.



commit 685b879c91069ca5c8babd4abaf8d59fe30b84d4
Author: Julien Moutte <julien fluendo com>
Date:   Thu Apr 9 15:57:58 2015 +0200

    Update file set from selector on success.
    
    The fileset might have changed based on the selector configuration.

 LongoMatch.GUI/Gui/GUIToolkit.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/GUIToolkit.cs b/LongoMatch.GUI/Gui/GUIToolkit.cs
index 31b8bb4..5699e90 100644
--- a/LongoMatch.GUI/Gui/GUIToolkit.cs
+++ b/LongoMatch.GUI/Gui/GUIToolkit.cs
@@ -449,6 +449,12 @@ namespace LongoMatch.Gui
                                ret = true;
                                break;
                        }
+                       if (ret) {
+                               // We need to update the fileset as it might have changed. Indeed if multi 
camera is not supported
+                               // widget will propose only one media file selector and will return a smaller 
fileset than the 
+                               // one provided originally.
+                               project.Description.FileSet = fileselector.FileSet;
+                       }
                        d.Destroy ();
                        return ret;
                }


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