diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-12 22:51:23 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-12 22:51:23 (GMT) |
commit | b0ddb9c1b81044af2894729199a0051077ff3f74 (patch) | |
tree | 97f1479c569471d6530232dd55b355448fe351f6 /Source/QtDialog | |
parent | fcc62c6d0dc4dd514a0588ff21339d39b7e641f2 (diff) | |
download | CMake-b0ddb9c1b81044af2894729199a0051077ff3f74.zip CMake-b0ddb9c1b81044af2894729199a0051077ff3f74.tar.gz CMake-b0ddb9c1b81044af2894729199a0051077ff3f74.tar.bz2 |
BUG: Fix prompt for changes if they haven't been saved.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 3eb3ef1..e6192b3 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -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); |