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

This commit is contained in:
Sebastien Barre 2001-12-05 16:05:26 -05:00
parent 10ec312448
commit cec99b76a6
1 changed files with 4 additions and 1 deletions

View File

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