forked from qt-creator/qt-creator
Git: Cleanup id comparison
Change-Id: I4aefbd9ec900c54a5cdf5ae83519a07f4e768282 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
79974ac16f
commit
82d4afcba9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user