BUG: Fix prompt for changes if they haven't been saved.

This commit is contained in:
Clinton Stimpson 2007-11-12 17:51:23 -05:00
parent fcc62c6d0d
commit b0ddb9c1b8
1 changed files with 3 additions and 9 deletions

View File

@ -689,19 +689,12 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s)
return;
}
CMakeSetupDialog::State old = this->CurrentState;
this->CurrentState = s;
if(s == Interrupting)
{
if(old == Configuring)
{
this->ConfigureButton->setEnabled(false);
}
if(old == Generating)
{
this->GenerateButton->setEnabled(false);
}
this->ConfigureButton->setEnabled(false);
this->GenerateButton->setEnabled(false);
}
else if(s == Configuring)
{
@ -713,6 +706,7 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s)
}
else if(s == Generating)
{
this->CacheModified = false;
this->Output->clear();
this->setEnabledState(false);
this->ConfigureButton->setEnabled(false);