From 3cd1d6e9e1d34d59100c9992602ba45958f1824e Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Thu, 8 Nov 2007 16:47:00 -0500 Subject: BUG: Don't enable generate if configure completed with errors. ENH: Allow build w/ Qt configured with no STL support. --- Source/QtDialog/CMakeSetupDialog.cxx | 2 +- Source/QtDialog/QCMake.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 2bb470d..1ed4943 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -284,7 +284,7 @@ void CMakeSetupDialog::finishConfigure(int err) tr("Error in configuration process, project files may be invalid"), QMessageBox::Ok); } - if(!this->CacheValues->cacheModel()->modifiedValues()) + else if(!this->CacheValues->cacheModel()->modifiedValues()) { this->setGenerateEnabled(true); } diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index bfa5af9..9d25170 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -54,7 +54,7 @@ QCMake::QCMake(QObject* p) std::vector::iterator iter; for(iter = generators.begin(); iter != generators.end(); ++iter) { - this->AvailableGenerators.append(QString::fromStdString(*iter)); + this->AvailableGenerators.append(iter->c_str()); } } @@ -107,7 +107,7 @@ void QCMake::setBinaryDirectory(const QString& dir) const char* extraGen = cachem->GetCacheValue("CMAKE_EXTRA_GENERATOR"); std::string curGen = cmExternalMakefileProjectGenerator:: CreateFullGeneratorName(itm.GetValue(), extraGen); - this->setGenerator(QString::fromStdString(curGen)); + this->setGenerator(curGen.c_str()); } } } -- cgit v0.12