Mercurial > hg > easyhg
diff hgtabwidget.cpp @ 134:1208d9688a8f
* Have a go at switching to new items in history widget when something happens in repo
author | Chris Cannam |
---|---|
date | Tue, 30 Nov 2010 13:07:53 +0000 |
parents | 4986642800f0 |
children | e6c6b88d19b9 |
line wrap: on
line diff
--- a/hgtabwidget.cpp Tue Nov 30 12:45:34 2010 +0000 +++ b/hgtabwidget.cpp Tue Nov 30 13:07:53 2010 +0000 @@ -140,11 +140,17 @@ void HgTabWidget::setNewLog(QString hgLogList) { m_historyWidget->parseNewLog(hgLogList); + if (m_historyWidget->haveNewItems()) { + setCurrentWidget(m_historyWidget); + } } void HgTabWidget::addIncrementalLog(QString hgLogList) { m_historyWidget->parseIncrementalLog(hgLogList); + if (m_historyWidget->haveNewItems()) { + setCurrentWidget(m_historyWidget); + } } void HgTabWidget::setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath)