[PATCH 7/7] Store note add-in info only if enabled.
- From: Łukasz Krotowski <lukasz krotowski gmail com>
- To: gnote-list gnome org
- Subject: [PATCH 7/7] Store note add-in info only if enabled.
- Date: Sat, 22 May 2010 03:34:26 +0200
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]