Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
151:c91445ee3d57 | 152:2b997861174b |
---|---|
71 void HgTabWidget::clearSelections() | 71 void HgTabWidget::clearSelections() |
72 { | 72 { |
73 m_fileStatusWidget->clearSelections(); | 73 m_fileStatusWidget->clearSelections(); |
74 } | 74 } |
75 | 75 |
76 void HgTabWidget::setCurrent(QStringList ids, bool showUncommittedChanges) | 76 void HgTabWidget::setCurrent(QStringList ids) |
77 { | 77 { |
78 m_historyWidget->setCurrent(ids, showUncommittedChanges); | 78 m_historyWidget->setCurrent(ids, canCommit()); |
79 } | 79 } |
80 | 80 |
81 bool HgTabWidget::canCommit() const | 81 bool HgTabWidget::canCommit() const |
82 { | 82 { |
83 if (!m_fileStatusWidget->getSelectedAddableFiles().empty()) return false; | 83 if (!m_fileStatusWidget->getSelectedAddableFiles().empty()) return false; |