summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-02 15:17:04 +0000
committersr55 <[email protected]>2010-04-02 15:17:04 +0000
commit2fc4ca204172e3fb368d4b994e22b1062040f019 (patch)
tree8a30aa58de78f74184ceaedf49d816d2914b14f4 /win/C#/frmMain.cs
parenteb4ffde8a29cf9b77a84440fa6c404e94eb9b6a6 (diff)
WinGui:
- Fix an issue with the Chapters tab where it wouldn't always enable the tab when the source had chapters git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3183 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs6
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
{