summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-10-30 19:02:25 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-10-30 19:02:25 (GMT)
commit3dab0e477f60bee6e9bd1b4e594a31415f4b5b14 (patch)
treee238b51f1b3fd2b0a69f245089250ace3674bad6 /Source/QtDialog
parent042587c6312e7ddb794dea912f6172b08837ba48 (diff)
downloadCMake-3dab0e477f60bee6e9bd1b4e594a31415f4b5b14.zip
CMake-3dab0e477f60bee6e9bd1b4e594a31415f4b5b14.tar.gz
CMake-3dab0e477f60bee6e9bd1b4e594a31415f4b5b14.tar.bz2
Fix bug #9722. Report error when not able to create build directory.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index a3de4db..eb82f2a 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