Skip to content
Snippets Groups Projects
Commit bc3aa442 authored by Robert Loehning's avatar Robert Loehning Committed by con
Browse files

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

Reviewed-by: Friedemann Kleint
(cherry picked from commit 8ee769a3)
parent b9c3a4e0
Branches
Tags
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment