summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-11-25 21:52:31 +0000
committersr55 <[email protected]>2009-11-25 21:52:31 +0000
commit1ad5c0f4f6295306828d179b68bfc6756a0a9d26 (patch)
tree38639193d56f4cfed98601fc1f67540f33e7db14 /win/C#/frmMain.cs
parent009238a822971a933d0b7642fd04c15bf8e404a2 (diff)
WinGui:
- Batch Scan Support. - Export.cs - Export Mac Preset (unfinished and not hooked up right now. Just checking it in so I don't lose it.) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2981 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 9cf29a270..f379ffd19 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -952,6 +952,10 @@ namespace Handbrake
Subtitles.Clear();
Subtitles.SetSubtitleTrackAuto();
}
+ // Update the source label if we have multiple streams
+ if (selectedTitle != null)
+ if (!string.IsNullOrEmpty(selectedTitle.SourceName))
+ labelSource.Text = labelSource.Text = Path.GetFileName(selectedTitle.SourceName);
// Run the autoName & chapterNaming functions
if (Properties.Settings.Default.autoNaming)
@@ -1603,6 +1607,10 @@ namespace Handbrake
private void UpdateSourceLabel()
{
labelSource.Text = string.IsNullOrEmpty(sourcePath) ? "Select \"Source\" to continue." : this.SourceName;
+
+ if (selectedTitle != null)
+ if (!string.IsNullOrEmpty(selectedTitle.SourceName)) // If it's one of multiple source files, make sure we don't use the folder name
+ labelSource.Text = Path.GetFileName(selectedTitle.SourceName);
}
#endregion