From d9f77270f51a9251b96509147164b2e7c73b1e50 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 28 Sep 2012 10:30:57 +0000 Subject: [PATCH] Making sure there is no IE capture, if the setting is disabled. Although I couldn't find any evidence that there is a bug here, as reported, this doesn't hurt. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2103 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index b415dd30a..2469d6e0e 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -533,8 +533,10 @@ namespace Greenshot { if (!RegisterWrapper(failedKeys, "CaptureLastRegion", "LastregionHotkey", new HotKeyHandler(instance.CaptureLastRegion))) { success = false; } - if (!RegisterWrapper(failedKeys, "CaptureIE", "IEHotkey", new HotKeyHandler(instance.CaptureIE))) { - success = false; + if (conf.IECapture) { + if (!RegisterWrapper(failedKeys, "CaptureIE", "IEHotkey", new HotKeyHandler(instance.CaptureIE))) { + success = false; + } } if (!success) { @@ -597,7 +599,9 @@ namespace Greenshot { } void CaptureIE() { - CaptureHelper.CaptureIE(true, null); + if (conf.IECapture) { + CaptureHelper.CaptureIE(true, null); + } } void CaptureWindow() {