forked from qt-creator/qt-creator
vcsbase: auto save settings when requested by Core::ICore
Bazaar and Mercurial plugins are impacted Change-Id: Ia781dae79983350d773f454de32f812e876bfbfb Merge-request: 350 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-on: http://codereview.qt.nokia.com/645 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
@@ -136,7 +136,6 @@ BazaarPlugin::BazaarPlugin() :
|
||||
|
||||
BazaarPlugin::~BazaarPlugin()
|
||||
{
|
||||
m_bazaarSettings.writeSettings(m_core->settings(), Constants::BAZAAR);
|
||||
if (m_client) {
|
||||
delete m_client;
|
||||
m_client = 0;
|
||||
@@ -162,7 +161,7 @@ bool BazaarPlugin::initialize(const QStringList &arguments, QString *errorMessag
|
||||
|
||||
m_optionsPage = new OptionsPage();
|
||||
addAutoReleasedObject(m_optionsPage);
|
||||
m_bazaarSettings.readSettings(m_core->settings(), Constants::BAZAAR);
|
||||
m_bazaarSettings.readSettings(m_core->settings());
|
||||
|
||||
connect(m_optionsPage, SIGNAL(settingsChanged()), m_client, SLOT(settingsChanged()));
|
||||
connect(m_client, SIGNAL(changed(QVariant)), versionControl(), SLOT(changed(QVariant)));
|
||||
|
Reference in New Issue
Block a user