summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-10-31 17:39:36 +0000
committersr55 <[email protected]>2010-10-31 17:39:36 +0000
commit812a95f0dcf1b396a213deaf93d50ab896d249f9 (patch)
tree276532ec297a671eda2ac4a7421a24207a6d96da /win
parentca9461c624d182a68746af2bfa006f5a00124c21 (diff)
WinGui:
- Unsubscribe an event handler when cancelling the scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3632 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Scan.cs4
-rw-r--r--win/C#/HandBrake10.5.1.ReSharper1
2 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Scan.cs b/win/C#/HandBrake.ApplicationServices/Services/Scan.cs
index c18fad3d8..e2412cbd3 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Scan.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Scan.cs
@@ -138,6 +138,8 @@ namespace HandBrake.ApplicationServices.Services
{
try
{
+ this.readData.OnScanProgress -= this.OnScanProgress;
+
if (hbProc != null && !hbProc.HasExited)
hbProc.Kill();
}
@@ -201,7 +203,7 @@ namespace HandBrake.ApplicationServices.Services
this.hbProc.Start();
this.readData = new Parser(this.hbProc.StandardError.BaseStream);
- this.readData.OnScanProgress += new ScanProgressEventHandler(this.OnScanProgress);
+ this.readData.OnScanProgress += this.OnScanProgress;
this.SouceData = DVD.Parse(this.readData);
// Write the Buffer out to file.
diff --git a/win/C#/HandBrake10.5.1.ReSharper b/win/C#/HandBrake10.5.1.ReSharper
index 42cfee806..781e47d13 100644
--- a/win/C#/HandBrake10.5.1.ReSharper
+++ b/win/C#/HandBrake10.5.1.ReSharper
@@ -86,6 +86,7 @@
<Abbreviation Text="UTF" />
<Abbreviation Text="TX" />
<Abbreviation Text="SRT" />
+ <Abbreviation Text="CLI" />
</Naming2>
<CustomMemberReorderingPatterns><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns">