summaryrefslogtreecommitdiffstats
path: root/win/C#/frmQueue.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-18 16:23:40 +0000
committersr55 <[email protected]>2010-04-18 16:23:40 +0000
commita82bdb07077d06ef764a25a66eb04ade46fa12ea (patch)
tree8b2ddc3f2c1d4b2c2790bd75ba7c73aaf331a6b9 /win/C#/frmQueue.cs
parentf0761065a31f0921c289085f3e41e583640cef65 (diff)
WinGui:
- Queue Edit now only scans the title that was added rather than all titles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3241 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmQueue.cs')
-rw-r--r--win/C#/frmQueue.cs60
1 files changed, 32 insertions, 28 deletions
diff --git a/win/C#/frmQueue.cs b/win/C#/frmQueue.cs
index 8bb0e1910..b6d19045e 100644
--- a/win/C#/frmQueue.cs
+++ b/win/C#/frmQueue.cs
@@ -397,6 +397,32 @@ namespace Handbrake
}
/// <summary>
+ /// Edit a job
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
+ private void MnuEditClick(object sender, EventArgs e)
+ {
+ if (list_queue.SelectedIndices != null)
+ {
+ lock (queue)
+ {
+ lock (list_queue)
+ {
+ int index = list_queue.SelectedIndices[0];
+ mainWindow.RecievingJob(queue.GetJob(index));
+ queue.Remove(index);
+ RedrawQueue();
+ }
+ }
+ }
+ }
+
+ /// <summary>
/// Handle the delete Menu Item
/// </summary>
/// <param name="sender">
@@ -596,39 +622,17 @@ namespace Handbrake
{
if (!queue.LastEncode.IsEmpty)
{
- queue.Add(queue.LastEncode.Query, queue.LastEncode.Source, queue.LastEncode.Destination,
- queue.LastEncode.CustomQuery);
+ queue.Add(
+ queue.LastEncode.Query,
+ queue.LastEncode.Title,
+ queue.LastEncode.Source,
+ queue.LastEncode.Destination,
+ queue.LastEncode.CustomQuery);
UpdateUiElements();
}
}
/// <summary>
- /// Edit Job
- /// </summary>
- /// <param name="sender">
- /// The sender.
- /// </param>
- /// <param name="e">
- /// The e.
- /// </param>
- private void MnuReconfigureJobClick(object sender, EventArgs e)
- {
- if (list_queue.SelectedIndices != null)
- {
- lock (queue)
- {
- lock (list_queue)
- {
- int index = list_queue.SelectedIndices[0];
- mainWindow.RecievingJob(queue.GetJob(index));
- queue.Remove(index);
- RedrawQueue();
- }
- }
- }
- }
-
- /// <summary>
/// Hide's the window when the user tries to "x" out of the window instead of closing it.
/// </summary>
/// <param name="e">