diff options
author | sr55 <[email protected]> | 2009-09-09 08:10:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-09-09 08:10:17 +0000 |
commit | c46fb4570f1852083a83960de0124145ab0aa85a (patch) | |
tree | dad26872d152fccf1728f4bb91350b5a86d52a65 /win/C#/frmMain.cs | |
parent | 5552e4ba9041e0a810fb63dd175a62de48826906 (diff) |
WinGui:
- Improve autoName reliability - Thanks exdeus
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2809 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index a668cc69e..b46b5aeab 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -723,7 +723,7 @@ namespace Handbrake if (ActivityWindow != null)
ActivityWindow.SetLogView(false);
-
+
}
this.Focus();
}
@@ -861,18 +861,8 @@ namespace Handbrake return;
}
- switch (type) // Start the scan
- {
- case 1: // btn_dvd_source_Click()
- case 3: // mnu_dvd_drive_Click()
- sourcePath = Path.GetFullPath(file);
- startScan(file);
- break;
- case 2: // btn_file_source_Click()
- sourcePath = Path.GetFileName(file);
- startScan(file);
- break;
- }
+ sourcePath = Path.GetFileName(file);
+ startScan(file);
}
private void drp_dvdtitle_Click(object sender, EventArgs e)
{
@@ -1127,9 +1117,8 @@ namespace Handbrake else
newExtension = ".mp4";
- text_destination.Text = text_destination.Text.Replace(".mp4", newExtension);
- text_destination.Text = text_destination.Text.Replace(".m4v", newExtension);
- text_destination.Text = text_destination.Text.Replace(".mkv", newExtension);
+ if (Path.HasExtension(newExtension))
+ text_destination.Text = Path.ChangeExtension(text_destination.Text, newExtension);
}
//Video Tab
|