summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-10-17 19:36:02 +0000
committersr55 <[email protected]>2010-10-17 19:36:02 +0000
commit0dac83a2e9b8bd8fdddbd5b73b9719bc7c164bc2 (patch)
tree5390d1d8638af49fc84c568dcf5921ebf7d65cc0 /win/C#/frmMain.cs
parentf061b08735727584773eb5807becf6250c242566 (diff)
WinGui:
- Fix a bug in the AutoName where is used the folder name instead of source name when multiple files are scanned. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3606 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index b54fda06d..165da56d4 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -77,6 +77,11 @@ namespace Handbrake
return this.dvdDriveLabel;
}
+ if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName))
+ {
+ return Path.GetFileName(selectedTitle.SourceName);
+ }
+
if (Path.GetFileNameWithoutExtension(this.sourcePath) != "VIDEO_TS")
return Path.GetFileNameWithoutExtension(this.sourcePath);
@@ -1435,7 +1440,7 @@ namespace Handbrake
// 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);
+ labelSource.Text = Path.GetFileName(selectedTitle.SourceName);
// Run the AutoName & ChapterNaming functions
if (Properties.Settings.Default.autoNaming)
@@ -2196,11 +2201,6 @@ 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);
}
/// <summary>