Commit e2fa2d71 authored by Christian Kandeler's avatar Christian Kandeler Committed by Tobias Hunger

QbsProjectManager: Clean up qbs::Preferences object.

Change-Id: I5921b97b42a94aaa9c06d47f8581538c12c4fcab
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 6cc396ef
......@@ -60,10 +60,8 @@ QbsManager::QbsManager(Internal::QbsProjectManagerPlugin *plugin) :
m_plugin(plugin),
m_defaultPropertyProvider(new DefaultPropertyProvider)
{
if (!m_settings)
m_settings = new qbs::Settings(QLatin1String("QtProject"), QLatin1String("qbs"));
if (!m_preferences)
m_preferences = new qbs::Preferences(m_settings);
m_settings = new qbs::Settings(QLatin1String("QtProject"), QLatin1String("qbs"));
m_preferences = new qbs::Preferences(m_settings);
setObjectName(QLatin1String("QbsProjectManager"));
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsChanged()), this, SLOT(pushKitsToQbs()));
......@@ -89,6 +87,7 @@ QbsManager::~QbsManager()
{
delete m_defaultPropertyProvider;
delete m_settings;
delete m_preferences;
}
QString QbsManager::mimeType() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment