[chronojump] Encoder treeview capture cannot save/remove curves while recalculate
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Encoder treeview capture cannot save/remove curves while recalculate
- Date: Mon, 3 Aug 2015 16:09:08 +0000 (UTC)
commit cb5ef7e9b0f2fa1877cc817fca9640b0862cc1d0
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Aug 3 18:08:27 2015 +0200
Encoder treeview capture cannot save/remove curves while recalculate
src/gui/encoder.cs | 1 +
src/gui/encoderTreeviews.cs | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index e608a25..15e067c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4578,6 +4578,7 @@ public partial class ChronoJumpWindow
image_encoder_width = UtilGtk.WidgetWidth(viewport_image_encoder_capture)-5;
image_encoder_height = UtilGtk.WidgetHeight(viewport_image_encoder_capture)-5;
+ //don't need to be false because ItemToggled is deactivated during capture
treeview_encoder_capture_curves.Sensitive = true;
prepareEncoderGraphs(true);
diff --git a/src/gui/encoderTreeviews.cs b/src/gui/encoderTreeviews.cs
index 4250f79..fe39f11 100644
--- a/src/gui/encoderTreeviews.cs
+++ b/src/gui/encoderTreeviews.cs
@@ -238,8 +238,9 @@ public partial class ChronoJumpWindow
void ItemToggled(object o, ToggledArgs args)
{
- //cannot toggle item while capturing
- if(capturingCsharp == encoderCaptureProcess.CAPTURING)
+ //cannot toggle item while capturing or recalculating
+ if(capturingCsharp == encoderCaptureProcess.CAPTURING ||
+ encoderRProcAnalyze.status == EncoderRProc.Status.RUNNING)
return;
TreeIter iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]