changeset 252:669f2a8ff1a8

* Handle clone failure more gracefully
author Chris Cannam
date Wed, 12 Jan 2011 12:47:56 +0000
parents be483734bde5
children 8730dd806cca
files mainwindow.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mainwindow.cpp	Tue Jan 11 17:58:14 2011 +0000
+++ b/mainwindow.cpp	Wed Jan 12 12:47:56 2011 +0000
@@ -1684,6 +1684,11 @@
                      output));
         settings();
         return;
+    case ACT_CLONEFROMREMOTE:
+        // if clone fails, we have no repo
+        workFolderPath = "";
+        enableDisableActions();
+        break;
     case ACT_INCOMING:
         // returns non-zero code and no output if the check was
         // successful but there are no changes pending