summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-05 21:05:26 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-05 21:05:26 (GMT)
commitcec99b76a6fac85fd5e13855ea6344116ee9ed55 (patch)
tree7eb8d8e0e3b576fb3fe38cae918d862dbbb954be /Source/MFCDialog
parent10ec31244815859cb05e4475f4321d9ef6404fa4 (diff)
downloadCMake-cec99b76a6fac85fd5e13855ea6344116ee9ed55.zip
CMake-cec99b76a6fac85fd5e13855ea6344116ee9ed55.tar.gz
CMake-cec99b76a6fac85fd5e13855ea6344116ee9ed55.tar.bz2
If Shift is pressed with 'OK', then don't quit
Diffstat (limited to 'Source/MFCDialog')
-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()