ENH: Adjust when log is cleared. Its kept doing generate,
and cleared when changing the source directory. #6358.
This commit is contained in:
parent
09829174a3
commit
0a9f041d2f
|
@ -261,7 +261,6 @@ void CMakeSetupDialog::doConfigure()
|
||||||
|
|
||||||
this->enterState(Configuring);
|
this->enterState(Configuring);
|
||||||
|
|
||||||
this->Output->clear();
|
|
||||||
this->CacheValues->selectionModel()->clear();
|
this->CacheValues->selectionModel()->clear();
|
||||||
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
||||||
"setProperties", Qt::QueuedConnection,
|
"setProperties", Qt::QueuedConnection,
|
||||||
|
@ -437,6 +436,7 @@ void CMakeSetupDialog::setBinaryDirectory(const QString& dir)
|
||||||
|
|
||||||
void CMakeSetupDialog::onSourceDirectoryChanged(const QString& dir)
|
void CMakeSetupDialog::onSourceDirectoryChanged(const QString& dir)
|
||||||
{
|
{
|
||||||
|
this->Output->clear();
|
||||||
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
||||||
"setSourceDirectory", Qt::QueuedConnection, Q_ARG(QString, dir));
|
"setSourceDirectory", Qt::QueuedConnection, Q_ARG(QString, dir));
|
||||||
}
|
}
|
||||||
|
@ -765,7 +765,6 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s)
|
||||||
else if(s == Generating)
|
else if(s == Generating)
|
||||||
{
|
{
|
||||||
this->CacheModified = false;
|
this->CacheModified = false;
|
||||||
this->Output->clear();
|
|
||||||
this->setEnabledState(false);
|
this->setEnabledState(false);
|
||||||
this->ConfigureButton->setEnabled(false);
|
this->ConfigureButton->setEnabled(false);
|
||||||
this->GenerateAction->setEnabled(false);
|
this->GenerateAction->setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue