Explorar o código

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

Clinton Stimpson %!s(int64=16) %!d(string=hai) anos
pai
achega
3dab0e477f
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      Source/QtDialog/CMakeSetupDialog.cxx

+ 8 - 1
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