diff src/mainwindow.cpp @ 608:6f90bb52eee6

Clear history and file states while opening a new remote repo
author Chris Cannam
date Tue, 03 Jul 2012 12:12:42 +0100
parents d35ed7488ccd
children c1451b356097
line wrap: on
line diff
--- a/src/mainwindow.cpp	Tue Jul 03 11:48:28 2012 +0100
+++ b/src/mainwindow.cpp	Tue Jul 03 12:12:42 2012 +0100
@@ -1218,6 +1218,7 @@
             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)));
+            m_workFolderPath = "";
             return;
         }
     }
@@ -1226,6 +1227,7 @@
     
     updateWorkFolderAndRepoNames();
     m_hgTabs->updateWorkFolderFileList("");
+    m_hgTabs->clearAll();
 
     m_runner->requestAction(HgAction(ACT_CLONEFROMREMOTE, m_workFolderPath, params));
 }