summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-03-06 14:27:44 +0000
committersr55 <[email protected]>2009-03-06 14:27:44 +0000
commit881abedc7ce136b57d8adde824a3235b5526dc52 (patch)
tree58f5036b9d90c5f96e39d274107ae4f5a651ffcc /win/C#/frmMain.cs
parentf282e004f6cee533d16704527173b1b137dc5260 (diff)
WinGui:
- Add an override for the queue show method. Saves calling setQueue() before Show(). - Fix a couple of message boxes appearing behind windows. Thanks go to: ExDeus git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2230 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index b0e61fd27..07828e81a 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -615,7 +615,7 @@ namespace Handbrake
}
queueWindow.setQueue();
if (encodeQueue.count() > 1)
- queueWindow.Show();
+ queueWindow.Show(false);
setEncodeStarted(); // Encode is running, so setup the GUI appropriately
encodeQueue.startEncode(); // Start The Queue Encoding Process
@@ -639,13 +639,11 @@ namespace Handbrake
encodeQueue.add(query, text_source.Text, text_destination.Text);
encodeQueue.write2disk("hb_queue_recovery.xml"); // Writes the queue to the recovery file, just incase the GUI crashes.
- queueWindow.setQueue();
queueWindow.Show();
}
}
private void btn_showQueue_Click(object sender, EventArgs e)
{
- queueWindow.setQueue();
queueWindow.Show();
queueWindow.Activate();
}
@@ -666,7 +664,7 @@ namespace Handbrake
qtpreview.Show();
}
else
- MessageBox.Show("The preview window is already open!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ MessageBox.Show(qtpreview, "The preview window is already open!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
private void btn_ActivityWindow_Click(object sender, EventArgs e)
@@ -1740,11 +1738,11 @@ namespace Handbrake
if (curDrive.IsReady)
{
if (File.Exists(curDrive.RootDirectory + "VIDEO_TS\\VIDEO_TS.IFO"))
+ {
mnu_dvd_drive.Text = curDrive.RootDirectory + "VIDEO_TS (" + curDrive.VolumeLabel + ")";
- else
- mnu_dvd_drive.Text = "[No DVD Drive Ready]";
-
- foundDrive = true;
+ foundDrive = true;
+ break;
+ }
}
}
@@ -2109,4 +2107,4 @@ namespace Handbrake
// This is the END of the road ------------------------------------------------------------------------------
}
-} \ No newline at end of file
+}