summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 36ca704..b95d780 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()