From 12dcff0f147ada037af45605205acc5814203c66 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 30 Mar 2013 00:37:19 -0500 Subject: [PATCH] fix launchpad bug #801414 - Open Database/Master Key dialog shows after minimizing when LockOnWindowMinimize and LockOnSessionSwitch are both true and user click close window button. --- KeePass/Forms/MainForm.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/KeePass/Forms/MainForm.cs b/KeePass/Forms/MainForm.cs index 28114bb..649f683 100644 --- a/KeePass/Forms/MainForm.cs +++ b/KeePass/Forms/MainForm.cs @@ -1505,6 +1505,9 @@ namespace KeePass.Forms if(ws == FormWindowState.Minimized) { + // mono calls OnFormRezise multiple times when minimizing + if (m_fwsLast == FormWindowState.Minimized) + return; // For default value, also see options dialog if(Program.Config.Security.WorkspaceLocking.LockOnWindowMinimize) { -- 1.7.11.msysgit.1