Fix a crash on codestylesettings

Task-number: QTCREATORBUG-10235

Instead of rely on ICodeStylePreferences::destroyed() signal,
when all other objects might be in destruction phase,
clear project code style settings explicitly, when project
closes.

Change-Id: I0dd6675d54c5495d4006acbc9ad12c95f1d0a00c
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
jkobus
2013-09-27 12:46:08 +02:00
committed by Jarek Kobus
parent 1f0cbbc807
commit 2cbb64e0f9
4 changed files with 45 additions and 19 deletions

View File

@@ -377,7 +377,6 @@ private slots:
bool inFindScope(const QTextCursor &cursor);
bool inFindScope(int selectionStart, int selectionEnd);
void inSnippetMode(bool *active);
void onCodeStylePreferencesDestroyed();
private:
Internal::BaseTextEditorWidgetPrivate *d;