Commit 716e3277 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

VCS: Remove redundant qualifications



Change-Id: I06b62742395a1864b44d1c1ecfed0690fe61185e
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 5e54037f
......@@ -636,16 +636,16 @@ bool VcsBasePlugin::enableMenuAction(ActionState as, QAction *menuAction) const
if (debug)
qDebug() << "enableMenuAction" << menuAction->text() << as;
switch (as) {
case VcsBase::VcsBasePlugin::NoVcsEnabled: {
case NoVcsEnabled: {
const bool supportsCreation = d->supportsRepositoryCreation();
menuAction->setVisible(supportsCreation);
menuAction->setEnabled(supportsCreation);
return supportsCreation;
}
case VcsBase::VcsBasePlugin::OtherVcsEnabled:
case OtherVcsEnabled:
menuAction->setVisible(false);
return false;
case VcsBase::VcsBasePlugin::VcsEnabled:
case VcsEnabled:
menuAction->setVisible(true);
menuAction->setEnabled(true);
break;
......
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