From cec99b76a6fac85fd5e13855ea6344116ee9ed55 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Wed, 5 Dec 2001 16:05:26 -0500 Subject: [PATCH] If Shift is pressed with 'OK', then don't quit --- Source/MFCDialog/CMakeSetupDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 36ca7040b..b95d78018 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -894,7 +894,10 @@ void CMakeSetupDialog::OnOk() m_CacheEntriesList.ClearDirty(); this->RunCMake(true); cmMakefileGenerator::UnRegisterGenerators(); - CDialog::OnOK(); + if (!(::GetKeyState(VK_SHIFT) & 0x1000)) + { + CDialog::OnOK(); + } } void CMakeSetupDialog::OnEditchangeGenerator()