Commit 3e2f9f59 authored by Leandro Melo's avatar Leandro Melo Committed by Leandro T. C. Melo
Browse files

Fix crash when changing font settings

The snippets page should not operate on the font settings
changed signal when the ui does not exist.

Task-number: QTCREATORBUG-5173
Change-Id: Ic1363cb41340b5ea04803eb27de3dd0af6ecda0c
Reviewed-on: http://codereview.qt.nokia.com/511

Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent edf0424b
......@@ -413,6 +413,8 @@ void SnippetsSettingsPagePrivate::finish()
SnippetsCollection::instance()->reload();
m_snippetsCollectionChanged = false;
}
disconnect(TextEditorSettings::instance(), 0, this, 0);
}
void SnippetsSettingsPagePrivate::loadSettings()
......
Supports Markdown
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