From a954ffec25277723d1653cf8f63e895c645254c6 Mon Sep 17 00:00:00 2001 From: jkobus Date: Thu, 20 Sep 2012 13:44:24 +0200 Subject: [PATCH] Fix saving of code style settings Save the would code style settings structure, not only its part. Task-number: QTCREATORBUG-7867 Change-Id: I51c90ba372c28d10fb69e17a9845573f9d2d18f9 Reviewed-by: Tobias Hunger --- src/plugins/texteditor/codestylepool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/codestylepool.cpp b/src/plugins/texteditor/codestylepool.cpp index 8dfd5a2bcd1..9434ef8e268 100644 --- a/src/plugins/texteditor/codestylepool.cpp +++ b/src/plugins/texteditor/codestylepool.cpp @@ -291,6 +291,6 @@ void CodeStylePool::exportCodeStyle(const Utils::FileName &fileName, ICodeStyleP tmp.insert(QLatin1String(displayNameKey), codeStyle->displayName()); tmp.insert(QLatin1String(codeStyleDataKey), map); Utils::PersistentSettingsWriter writer(fileName, QLatin1String(codeStyleDocKey)); - writer.save(map, 0); + writer.save(tmp, 0); }