From 3c4dcbe57e88d64eb9ff4e1186f7daf5793e02f2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 25 May 2013 12:09:50 +0000 Subject: [PATCH] WinGui: End Point can not be greater than Start and vice versa for the chapters dropdowns. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5511 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index f3945fb7a..02a2e88eb 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -760,6 +760,11 @@ namespace HandBrakeWPF.ViewModels this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName); } } + + if (this.SelectedStartPoint > this.SelectedEndPoint) + { + this.SelectedEndPoint = this.SelectedStartPoint; + } } } @@ -783,6 +788,11 @@ namespace HandBrakeWPF.ViewModels { this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName); } + + if (this.SelectedStartPoint > this.SelectedEndPoint) + { + this.SelectedStartPoint = this.SelectedEndPoint; + } } } -- 2.40.0