소스 검색

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

Clinton Stimpson 16 년 전
부모
커밋
3dab0e477f
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  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