diff src/hgtabwidget.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 533519ebc0cb
children 38c84c66ad7a
line wrap: on
line diff
--- a/src/hgtabwidget.cpp	Tue Jul 03 11:48:28 2012 +0100
+++ b/src/hgtabwidget.cpp	Tue Jul 03 12:12:42 2012 +0100
@@ -144,6 +144,12 @@
     m_historyWidget->setClosedHeadIds(closed);
 }
 
+void HgTabWidget::clearAll()
+{
+    m_fileStatusWidget->clearWidgets();
+    m_historyWidget->clear();
+}
+
 void HgTabWidget::updateFileStates()
 {
     m_fileStatusWidget->updateWidgets();