[gnote] Remove menu item when statistics add-in is disabled



commit 6b62d69e90e9a3b685e0e54d802454b8021cb77a
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Sep 14 18:48:43 2013 +0300

    Remove menu item when statistics add-in is disabled

 .../statistics/statisticsapplicationaddin.cpp      |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/addins/statistics/statisticsapplicationaddin.cpp 
b/src/addins/statistics/statisticsapplicationaddin.cpp
index d56f432..8206930 100644
--- a/src/addins/statistics/statisticsapplicationaddin.cpp
+++ b/src/addins/statistics/statisticsapplicationaddin.cpp
@@ -57,6 +57,8 @@ void StatisticsApplicationAddin::initialize()
 
 void StatisticsApplicationAddin::shutdown()
 {
+  gnote::IActionManager::obj().remove_main_window_search_action("ShowStatistics");
+  m_action.reset();
   m_initialized = false;
 }
 


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