forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user