diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 1fb52db5c..5f8cd4ecd 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1736,8 +1736,10 @@ namespace Handbrake drp_dvdtitle.SelectedItem = Main.SelectLongestTitle(currentSource);
// Enable the creation of chapter markers if the file is an image of a dvd.
- if (sourcePath.ToLower().Contains(".iso") || sourcePath.Contains("VIDEO_TS") ||
- Directory.Exists(Path.Combine(sourcePath, "VIDEO_TS")))
+ int start, end;
+ int.TryParse(drop_chapterStart.Items[0].ToString(), out start);
+ int.TryParse(drop_chapterFinish.Items[drop_chapterFinish.Items.Count -1].ToString(), out end);
+ if (end > start)
Check_ChapterMarkers.Enabled = true;
else
{
|