Explorar el Código

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

Sebastien Barre hace 24 años
padre
commit
cec99b76a6
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      Source/MFCDialog/CMakeSetupDialog.cpp

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