Git: Save settings

VCSBaseClient handles saving of settings for us, but we do not
use that yet, so we have to do that ourselves:-(

Change-Id: I731d01d429497581fad814effd68bbd784e05fe8
Reviewed-on: http://codereview.qt-project.org/6080
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tobias Hunger
2011-10-05 15:28:24 +00:00
parent ddf01f357b
commit c6a9de7252
3 changed files with 8 additions and 0 deletions

View File

@@ -309,6 +309,7 @@ GitClient::GitClient(GitSettings *settings) :
m_settings(settings)
{
Q_ASSERT(settings);
connect(m_core, SIGNAL(saveSettingsRequested()), this, SLOT(saveSettings()));
}
GitClient::~GitClient()
@@ -603,6 +604,11 @@ void GitClient::show(const QString &source, const QString &id, const QStringList
executeGit(workDir, arguments, editor);
}
void GitClient::saveSettings()
{
settings()->writeSettings(m_core->settings());
}
void GitClient::slotBlameRevisionRequested(const QString &source, QString change, int lineNumber)
{
// This might be invoked with a verbose revision description