From 3dab0e477f60bee6e9bd1b4e594a31415f4b5b14 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Fri, 30 Oct 2009 15:02:25 -0400 Subject: [PATCH] Fix bug #9722. Report error when not able to create build directory. --- Source/QtDialog/CMakeSetupDialog.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index a3de4db43..eb82f2a91 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -294,7 +294,14 @@ void CMakeSetupDialog::doConfigure() { return; } - dir.mkpath("."); + if(!dir.mkpath(".")) + { + QMessageBox::information(this, tr("Create Directory Failed"), + QString(tr("Failed to create directory %1")).arg(dir.path()), + QMessageBox::Ok); + + return; + } } // if no generator, prompt for it and other setup stuff