1
0
Эх сурвалжийг харах

If Shift is pressed with 'OK', then don't quit

Sebastien Barre 24 жил өмнө
parent
commit
cec99b76a6

+ 4 - 1
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()