Skip to content
Snippets Groups Projects
Commit 82d4afcb authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Cleanup id comparison


Change-Id: I4aefbd9ec900c54a5cdf5ae83519a07f4e768282
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 79974ac1
No related branches found
No related tags found
No related merge requests found
......@@ -69,12 +69,11 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, Co
connect(m_ui->revertButton, SIGNAL(clicked()), this, SLOT(acceptRevert()));
connect(m_ui->checkoutButton, SIGNAL(clicked()), this, SLOT(acceptCheckout()));
QByteArray idName = id.name();
if (idName == "Git.Revert")
if (id == "Git.Revert")
m_ui->revertButton->setDefault(true);
else if (idName == "Git.CherryPick")
else if (id == "Git.CherryPick")
m_ui->cherryPickButton->setDefault(true);
else if (idName == "Git.Checkout")
else if (id == "Git.Checkout")
m_ui->checkoutButton->setDefault(true);
else
m_ui->showButton->setDefault(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment