CommandLocator: Sort filter by priority and id, fix hg filter enabling.

This commit is contained in:
Friedemann Kleint
2010-02-15 13:55:11 +01:00
parent 2a63387085
commit 4b76d828f7
2 changed files with 9 additions and 3 deletions

View File

@@ -708,11 +708,13 @@ void MercurialPlugin::createSeparator(const QList<int> &context, const QString &
void MercurialPlugin::updateActions(VCSBase::VCSBasePlugin::ActionState as)
{
if (!enableMenuAction(as, m_menuAction))
if (!enableMenuAction(as, m_menuAction)) {
m_commandLocator->setEnabled(false);
return;
}
const QString filename = currentState().currentFileName();
const bool repoEnabled = currentState().hasTopLevel();
m_commandLocator->setEnabled(repoEnabled);
annotateFile->setParameter(filename);
diffFile->setParameter(filename);