Skip to content
Snippets Groups Projects
Commit cea35d17 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

tweak

parent 3d60061d
No related branches found
No related tags found
No related merge requests found
...@@ -1559,9 +1559,6 @@ void onelabGroup::rebuildTree(bool deleteWidgets) ...@@ -1559,9 +1559,6 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
std::set<std::string> closed = _getClosedGmshMenus(); std::set<std::string> closed = _getClosedGmshMenus();
_tree->take_focus(); // make sure we remove the focus from any widget that
// will be deleted; this can crash fltk
_tree->clear(); _tree->clear();
_tree->sortorder(FL_TREE_SORT_ASCENDING); _tree->sortorder(FL_TREE_SORT_ASCENDING);
_tree->selectmode(FL_TREE_SELECT_NONE); _tree->selectmode(FL_TREE_SELECT_NONE);
...@@ -1576,6 +1573,8 @@ void onelabGroup::rebuildTree(bool deleteWidgets) ...@@ -1576,6 +1573,8 @@ void onelabGroup::rebuildTree(bool deleteWidgets)
delStrings = _treeStrings; delStrings = _treeStrings;
_treeWidgets.clear(); _treeWidgets.clear();
_treeStrings.clear(); _treeStrings.clear();
// make sure we remove the focus from any widget that will be deleted
_tree->take_focus();
} }
_addGmshMenus(); _addGmshMenus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment