diff options
author | sr55 <[email protected]> | 2007-10-05 19:29:54 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-10-05 19:29:54 +0000 |
commit | db9da86bc851eb622245646281a69cdb0f4a4fa8 (patch) | |
tree | 9c00a4a7606aa7fc6535bf705f22119b47ca2c12 /win/C#/frmQueue.cs | |
parent | 587c58553ccb44f5a01a72e0889a8e131cb678ea (diff) |
WinGui:
- Fixed a very small bug with the h264 options bug. 1 line fix.
- Quick Start tips added to the help menu and removed from app startup.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1005 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index bc45d31b8..a08591c51 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -24,11 +24,15 @@ namespace Handbrake private void btn_q_encoder_Click(object sender, EventArgs e)
{
- progressBar.Value = 0;
- lbl_progressValue.Text = "0 %";
- progressBar.Step = 100 / list_queue.Items.Count;
- progressBar.Update();
- ThreadPool.QueueUserWorkItem(startProc);
+ if (list_queue.Items.Count != 0)
+ {
+ progressBar.Value = 0;
+ lbl_progressValue.Text = "0 %";
+ progressBar.Step = 100 / list_queue.Items.Count;
+ progressBar.Update();
+ ThreadPool.QueueUserWorkItem(startProc);
+ }
+
}
[DllImport("user32.dll")]
|