From 0a9f041d2f8ecf5514640e451d758a4fa14c8bd5 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Mon, 25 Feb 2008 15:07:38 -0500 Subject: ENH: Adjust when log is cleared. Its kept doing generate, and cleared when changing the source directory. #6358. --- Source/QtDialog/CMakeSetupDialog.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 724896c..e2a54a8 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -261,7 +261,6 @@ void CMakeSetupDialog::doConfigure() this->enterState(Configuring); - this->Output->clear(); this->CacheValues->selectionModel()->clear(); QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(), "setProperties", Qt::QueuedConnection, @@ -437,6 +436,7 @@ void CMakeSetupDialog::setBinaryDirectory(const QString& dir) void CMakeSetupDialog::onSourceDirectoryChanged(const QString& dir) { + this->Output->clear(); QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(), "setSourceDirectory", Qt::QueuedConnection, Q_ARG(QString, dir)); } @@ -765,7 +765,6 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) else if(s == Generating) { this->CacheModified = false; - this->Output->clear(); this->setEnabledState(false); this->ConfigureButton->setEnabled(false); this->GenerateAction->setEnabled(false); -- cgit v0.12