Commit 8ee769a3 authored by Robert Loehning's avatar Robert Loehning
Browse files

Disabling "Undo Project Changes" when not working in a Git repository.

Reviewed-by: Friedemann Kleint
parent fa2a115a
......@@ -759,6 +759,7 @@ void GitPlugin::updateActions()
m_statusProjectAction->setEnabled(false);
m_logProjectAction->setParameter(repository);
m_logProjectAction->setEnabled(false);
m_undoProjectAction->setEnabled(false);
return;
}
......@@ -778,6 +779,7 @@ void GitPlugin::updateActions()
m_statusProjectAction->setParameter(project);
m_logProjectAction->setEnabled(enabled);
m_logProjectAction->setParameter(project);
m_undoProjectAction->setEnabled(enabled);
}
void GitPlugin::showCommit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment