diff hgtabwidget.cpp @ 152:2b997861174b

* Set parents (setCurrent) on history widget when we know the new parents, not at each enable-disable actions call
author Chris Cannam
date Thu, 02 Dec 2010 11:51:15 +0000
parents 2fef6b0dfbe8
children 70fe12873106
line wrap: on
line diff
--- a/hgtabwidget.cpp	Thu Dec 02 11:33:09 2010 +0000
+++ b/hgtabwidget.cpp	Thu Dec 02 11:51:15 2010 +0000
@@ -73,9 +73,9 @@
     m_fileStatusWidget->clearSelections();
 }
 
-void HgTabWidget::setCurrent(QStringList ids, bool showUncommittedChanges)
+void HgTabWidget::setCurrent(QStringList ids)
 {
-    m_historyWidget->setCurrent(ids, showUncommittedChanges);
+    m_historyWidget->setCurrent(ids, canCommit());
 }
 
 bool HgTabWidget::canCommit() const