[PATCH 7/7] Store note add-in info only if enabled.



Signed-off-by: Łukasz Krotowski <lukasz krotowski gmail com>
---
 src/addinmanager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index 28e8111..42ac15d 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -256,7 +256,7 @@ namespace gnote {
         dmod->enabled(global_addins_prefs.get_boolean("Enabled", dmod->id()));
 
       sharp::IfaceFactoryBase * f = dmod->query_interface(NoteAddin::IFACE_NAME);
-      if(f) {
+      if(f && const_cast<const sharp::DynamicModule*>(dmod)->enabled()) {
         m_note_addin_infos.insert(std::make_pair(dmod->id(), f));
       }
 
-- 
1.7.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]