summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/snippets/snippetssettingspage.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-11-23 11:31:57 +0100
committerLeandro Melo <leandro.melo@nokia.com>2010-12-08 17:22:11 +0100
commit22c9b652b0cc7fe4aafd68a620c7bada5ff0a5d9 (patch)
tree0c0fea0a7ede3d7fd472cbe998693f8ead1f7237 /src/plugins/texteditor/snippets/snippetssettingspage.cpp
parent4a8bdaf8435a57ba1ea31378b9e7ccc86b1aeee0 (diff)
downloadqt-creator-22c9b652b0cc7fe4aafd68a620c7bada5ff0a5d9.tar.gz
Snippets: Move code from the manager to the collection.
Reloading and synchronizing are now directly accessible from the collection interface.
Diffstat (limited to 'src/plugins/texteditor/snippets/snippetssettingspage.cpp')
-rw-r--r--src/plugins/texteditor/snippets/snippetssettingspage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/texteditor/snippets/snippetssettingspage.cpp b/src/plugins/texteditor/snippets/snippetssettingspage.cpp
index 3302e1298c..156b42aca8 100644
--- a/src/plugins/texteditor/snippets/snippetssettingspage.cpp
+++ b/src/plugins/texteditor/snippets/snippetssettingspage.cpp
@@ -360,14 +360,16 @@ void SnippetsSettingsPagePrivate::apply()
if (settingsChanged())
writeSettings();
- if (m_snippetsCollectionChanged)
- SnippetsManager::instance()->persistSnippetsCollection();
+ if (m_snippetsCollectionChanged) {
+ SnippetsManager::instance()->snippetsCollection()->synchronize();
+ m_snippetsCollectionChanged = false;
+ }
}
void SnippetsSettingsPagePrivate::finish()
{
if (m_snippetsCollectionChanged) {
- SnippetsManager::instance()->reloadSnippetsCollection();
+ SnippetsManager::instance()->snippetsCollection()->reload();
m_snippetsCollectionChanged = false;
}
}