From 5b47348440c58a8b979876389569705f5734ebc6 Mon Sep 17 00:00:00 2001 From: Maxime Graulich <maxime.graulich@gmail.com> Date: Wed, 4 Feb 2015 16:10:23 +0000 Subject: [PATCH] ONELAB2: uncheck the hidden PViews --- Fltk/onelab2Group.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Fltk/onelab2Group.cpp b/Fltk/onelab2Group.cpp index 1ae38c71b8..b41d8c00ab 100644 --- a/Fltk/onelab2Group.cpp +++ b/Fltk/onelab2Group.cpp @@ -13,6 +13,7 @@ #include "viewButton.h" #include "solverButton.h" #include "PView.h" +#include "PViewOptions.h" #include "Gmsh.h" #include "onelabUtils.h" @@ -410,6 +411,8 @@ void onelabGroup::addLastPostProcessing() _tree->sortorder(FL_TREE_SORT_NONE); _addViewMenu(PView::list.size()-1); _tree->sortorder(FL_TREE_SORT_ASCENDING); + for(unsigned int i = 0; i < PView::list.size(); i++) + getViewButton(i)->value(PView::list[i]->getOptions()->visible); } void onelabGroup::rebuildSolverList() @@ -1012,6 +1015,7 @@ void onelabGroup::_addSolverMenu(int num) void onelabGroup::_addViewMenu(int num) { + // FIXME SEGFAULT in n->depth() with pend.py std::ostringstream path; path << "0Post-processing/View" << num; Fl_Tree_Item *n = _tree->add(path.str().c_str()); -- GitLab