[chronojump] Small fix on encoder video capture



commit 750f1958a1269a852238401e6ca9e105cacf7574
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 16 11:35:48 2015 +0100

    Small fix on encoder video capture

 src/gui/chronojump.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 7e3c02b..113f7c0 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3046,7 +3046,16 @@ public partial class ChronoJumpWindow
                                //remove video capture from contacts tab
                                hbox_video_capture.Remove(capturer);
                                //add in encoder tab
-                               viewport_video_capture_encoder.Add(capturer);
+
+                               //switch to capture tab                 
+                               radiobutton_video_encoder_capture.Active = true;
+
+                               //sometimes it seems is not removed and then cannot be added again
+                               //just add if not exists
+                               //maybe this error was because before we were not doing the:
+                               //radiobutton_video_encoder_capture.Active = true;
+                               if(viewport_video_capture_encoder.Child == null)
+                                       viewport_video_capture_encoder.Add(capturer);
                        }
                
                        if(wasActive) 


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