[niepce] shell: fix a crash cause by the destruction order



commit 2dcb2e133837e14d539fd21817e39948f39cf7e8
Author: Hubert Figuière <hub figuiere net>
Date:   Thu Aug 9 18:51:53 2018 -0400

    shell: fix a crash cause by the destruction order

 src/niepce/ui/moduleshell.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/niepce/ui/moduleshell.hpp b/src/niepce/ui/moduleshell.hpp
index a2ad82e..2a102d1 100644
--- a/src/niepce/ui/moduleshell.hpp
+++ b/src/niepce/ui/moduleshell.hpp
@@ -100,6 +100,7 @@ protected:
 private:
     libraryclient::LibraryClientPtr m_libraryclient;
     Glib::RefPtr<Gio::SimpleActionGroup> m_actionGroup;
+    std::map<std::string, ILibraryModule::Ptr> m_modules;
 
     // managed widgets...
     ModuleShellWidget             m_shell;
@@ -107,7 +108,6 @@ private:
     Glib::RefPtr<Gio::Menu>       m_module_menu;
 
     ui::SelectionController::Ptr  m_selection_controller;
-    std::map<std::string, ILibraryModule::Ptr> m_modules;
     // these should be dynamic
     GridViewModule::Ptr           m_gridview;
     dr::DarkroomModule::Ptr       m_darkroom;


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