Mercurial > hg > easyhg
diff hgtabwidget.cpp @ 172:b6dd1ee0e486
* Fix failure to recognise local uncommitted changes when an untracked file was selected
* Win32: Look in installed location (currently just the location of the present .exe) for executables as well as in path
* Win32: Search for easyhg extension in same way as executables
* Win32: Set installed location to path when running hg commands (for dependent DLLs)
author | Chris Cannam |
---|---|
date | Wed, 15 Dec 2010 22:07:31 +0000 |
parents | 4bad3c5c053a |
children | f16fe0db11f3 |
line wrap: on
line diff
--- a/hgtabwidget.cpp Tue Dec 14 21:16:52 2010 +0000 +++ b/hgtabwidget.cpp Wed Dec 15 22:07:31 2010 +0000 @@ -81,8 +81,7 @@ void HgTabWidget::setCurrent(QStringList ids, QString branch) { - bool showUncommitted = false; - if (canRevert()) showUncommitted = true; + bool showUncommitted = haveChangesToCommit(); m_historyWidget->setCurrent(ids, branch, showUncommitted); } @@ -132,6 +131,11 @@ return !m_fileStatusWidget->getSelectedUnresolvedFiles().empty(); } +bool HgTabWidget::haveChangesToCommit() const +{ + return m_fileStatusWidget->haveChangesToCommit(); +} + QStringList HgTabWidget::getAllSelectedFiles() const { return m_fileStatusWidget->getAllSelectedFiles();