summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitplugin.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-07-08 21:21:55 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-07-09 08:50:54 +0200
commit02512e234eeb2621ba7d370a190df05fa6083db7 (patch)
tree544aa073d8f9124ed4d96b26861facf51443a2fb /src/plugins/git/gitplugin.cpp
parent47f683f45e4aec378ae924972f38a4ce9d0f659f (diff)
downloadqt-creator-02512e234eeb2621ba7d370a190df05fa6083db7.tar.gz
Git: Use direct settings member instead of accessors
Change-Id: Iba2954934218bec92716a8df1c04fe9347defd17 Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r--src/plugins/git/gitplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index ff7ccd8ed2..63d4f37b8a 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -1123,7 +1123,7 @@ void GitPlugin::pull()
const VcsBase::VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
QString topLevel = state.topLevel();
- bool rebase = m_gitClient->settings()->boolValue(GitSettings::pullRebaseKey);
+ bool rebase = m_settings.boolValue(GitSettings::pullRebaseKey);
if (!rebase) {
QString currentBranch = m_gitClient->synchronousCurrentLocalBranch(topLevel);
@@ -1446,7 +1446,7 @@ void GitPlugin::updateBranches(const QString &repository)
void GitPlugin::updateRepositoryBrowserAction()
{
const bool repositoryEnabled = currentState().hasTopLevel();
- const bool hasRepositoryBrowserCmd = !settings().stringValue(GitSettings::repositoryBrowserCmd).isEmpty();
+ const bool hasRepositoryBrowserCmd = !m_settings.stringValue(GitSettings::repositoryBrowserCmd).isEmpty();
m_repositoryBrowserAction->setEnabled(repositoryEnabled && hasRepositoryBrowserCmd);
}