diff options
author | sr55 <[email protected]> | 2007-07-15 21:52:57 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-15 21:52:57 +0000 |
commit | 29036b449c87ca64e425e405fe81c450a65a081e (patch) | |
tree | 8d044a2609858ae2ea26ebf13bde3069d6205a26 /win/C#/frmQueue.cs | |
parent | e8c438e0573761f14af481d07615072babf94951 (diff) |
WinGui:
- Fixed Queue bug where it selecting the wrong item.
- changed Invalid chapter messagebox to onscreen text alert. (less irritating)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@692 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r-- | win/C#/frmQueue.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs index f9f59fee3..67251ccfd 100644 --- a/win/C#/frmQueue.cs +++ b/win/C#/frmQueue.cs @@ -73,9 +73,10 @@ namespace Handbrake private void startProc(object state)
{
+ // Reminder: There is still a bug here where the loop suddenly halts for no good reson. UpdateUIelements runs, then the loop finishes several items early.
for (int i = 0; i < list_queue.Items.Count; i++)
{
- string query = list_queue.Items[i] as string;
+ string query = list_queue.Items[0] as string;
Process hbProc = new Process();
hbProc.StartInfo.FileName = "hbcli.exe";
hbProc.StartInfo.Arguments = query;
@@ -108,6 +109,8 @@ namespace Handbrake hbProc.WaitForExit();
hbProc.Close();
+ hbProc.Dispose();
+
updateUIElements();
}
@@ -120,7 +123,6 @@ namespace Handbrake this.BeginInvoke(new ProgressUpdateHandler(updateUIElements));
return;
}
-
this.list_queue.Items.RemoveAt(0);
progressBar.PerformStep();
lbl_progressValue.Text = string.Format("{0} %", progressBar.Value);
|