From 82d4afcba94ee82212773ce34cf9ab704cd89eae Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgad.shaneh@audiocodes.com>
Date: Wed, 2 Oct 2013 22:50:57 +0300
Subject: [PATCH] Git: Cleanup id comparison

Change-Id: I4aefbd9ec900c54a5cdf5ae83519a07f4e768282
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
---
 src/plugins/git/changeselectiondialog.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/plugins/git/changeselectiondialog.cpp b/src/plugins/git/changeselectiondialog.cpp
index 84d904125d9..80b7b4ea83f 100644
--- a/src/plugins/git/changeselectiondialog.cpp
+++ b/src/plugins/git/changeselectiondialog.cpp
@@ -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);
-- 
GitLab