diff src/filestatuswidget.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 abfef4acceca
children 38c84c66ad7a
line wrap: on
line diff
--- a/src/filestatuswidget.cpp	Tue Jul 03 11:48:28 2012 +0100
+++ b/src/filestatuswidget.cpp	Tue Jul 03 12:12:42 2012 +0100
@@ -441,6 +441,16 @@
 }
 
 void
+FileStatusWidget::clearWidgets()
+{
+    foreach (FileStates::State s, m_stateListMap.keys()) {
+        QListWidget *w = m_stateListMap[s];
+        w->clear();
+        w->parentWidget()->hide();
+    }
+}
+
+void
 FileStatusWidget::updateWidgets()
 {
     QDateTime lastInteractionTime;