From f654d664ef98fb17a49e3b586bf711b1d5d51abc Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Thu, 6 Oct 2011 16:20:37 +0200
Subject: [PATCH] Git: Use indexes to address pretty printing combobox

This fixes a incompatibility with the config settings.

Change-Id: I518291af2309acfaba7eea78b22519c283114009
Reviewed-on: http://codereview.qt-project.org/6161
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
---
 src/plugins/git/gitclient.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index 600bf17fd94..680c9633035 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -192,7 +192,7 @@ public:
                       << ComboBoxItem(tr("email"), QLatin1String("email"))
                       << ComboBoxItem(tr("raw"), QLatin1String("raw"));
         mapSetting(addComboBox(QLatin1String("--pretty"), prettyChoices),
-                   m_client->settings()->stringPointer(GitSettings::showPrettyFormatKey));
+                   m_client->settings()->intPointer(GitSettings::showPrettyFormatKey));
     }
 
     void executeCommand()
-- 
GitLab