[gnote] Fix disabling default-enabled add-ins
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix disabling default-enabled add-ins
- Date: Sat, 27 Apr 2013 16:36:59 +0000 (UTC)
commit 59d8d837d3ef206968d7ab6099210f19bb76c5cb
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Apr 27 19:35:57 2013 +0300
Fix disabling default-enabled add-ins
src/addinmanager.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index 31730d6..8b99459 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -201,9 +201,10 @@ namespace gnote {
}
for(AddinInfoMap::const_iterator iter = m_addin_infos.begin(); iter != m_addin_infos.end(); ++iter) {
- if(global_addins_prefs_loaded && global_addins_prefs.has_key("Enabled", iter->first)
- && global_addins_prefs.get_boolean("Enabled", iter->first)) {
+ if(global_addins_prefs_loaded && global_addins_prefs.has_key("Enabled", iter->first)) {
+ if(global_addins_prefs.get_boolean("Enabled", iter->first)) {
addins.push_back(iter->second.addin_module());
+ }
}
else if(iter->second.default_enabled()) {
addins.push_back(iter->second.addin_module());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]