Fix bug #9722. Report error when not able to create build directory.

This commit is contained in:
Clinton Stimpson 2009-10-30 15:02:25 -04:00
parent 042587c631
commit 3dab0e477f
1 changed files with 8 additions and 1 deletions

View File

@ -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