summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-03-02 18:07:36 +0000
committersr55 <[email protected]>2009-03-02 18:07:36 +0000
commit7ddfbb43e072615b19042e852079b80061fd962c (patch)
treeba4b5b59749d9f2673b108394d9c21dc62850370 /win/C#/frmMain.cs
parentc6c9195fe10b6b7e09538d8f7ae76a7e4a7db598 (diff)
WinGui:
Patch from ExDeus - Thanks. - Show Queue button now activates the queue window on launch. - Code clean-up for the auto naming function. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2201 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index b1065436c..b0e61fd27 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -647,6 +647,7 @@ namespace Handbrake
{
queueWindow.setQueue();
queueWindow.Show();
+ queueWindow.Activate();
}
private void tb_preview_Click(object sender, EventArgs e)
{
@@ -852,7 +853,13 @@ namespace Handbrake
// Run the autoName & chapterNaming functions
if (Properties.Settings.Default.autoNaming == "Checked")
- text_destination.Text = hb_common_func.autoName(drp_dvdtitle, drop_chapterStart.Text, drop_chapterFinish.Text, text_source.Text, text_destination.Text, drop_format.SelectedIndex);
+ {
+ string autoPath = hb_common_func.autoName(drp_dvdtitle, drop_chapterStart.Text, drop_chapterFinish.Text, text_source.Text, text_destination.Text, drop_format.SelectedIndex);
+ if (autoPath != null)
+ text_destination.Text = autoPath;
+ else
+ MessageBox.Show("You currently have automatic file naming enabled for the destination box, but you do not have a default direcotry set. You should set this in the program options (see Tools Menu)","Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
data_chpt.Rows.Clear();
DataGridView chapterGridView = hb_common_func.chapterNaming(data_chpt, drop_chapterFinish.Text);