diff src/mainwindow.cpp @ 607:d35ed7488ccd

Show a visible error when trying to clone to a local folder that can't be created
author Chris Cannam
date Tue, 03 Jul 2012 11:48:28 +0100
parents 372b191247da
children 6f90bb52eee6
line wrap: on
line diff
--- a/src/mainwindow.cpp	Tue Jul 03 11:39:03 2012 +0100
+++ b/src/mainwindow.cpp	Tue Jul 03 11:48:28 2012 +0100
@@ -1215,7 +1215,9 @@
         if (!QDir().mkpath(m_workFolderPath)) {
             DEBUG << "hgCloneFromRemote: Failed to create target path "
                   << m_workFolderPath << endl;
-            //!!! report error
+            QMessageBox::critical
+                (this, tr("Could not create target folder"),
+                 tr("<qt><b>Could not create target folder</b><br><br>The local target folder \"%1\" does not exist<br>and could not be created.</qt>").arg(xmlEncode(m_workFolderPath)));
             return;
         }
     }