Skip to content

Commit 34b883a

Browse files
DorianGerardinArthoni
authored andcommitted
Fix of project opening bug in Bindings
* Fixed re-opening of project via openProject
1 parent bca48a3 commit 34b883a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/openfluid/utils/Binding.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ class Binding
576576
try
577577
{
578578
init();
579+
openfluid::base::RunContextManager::instance()->closeProject();
579580

580581
openfluid::base::IOListener FluidXListener;
581582

src/openfluid/utils/tests/Binding_TEST.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ BOOST_AUTO_TEST_CASE(check_datasetsprojects)
164164
std::cout << "obsIDs: " << TB->getObserversIDs() << std::endl;
165165

166166
openfluid::utils::Binding::destroy(TB);
167+
168+
// recall
169+
BOOST_REQUIRE(openfluid::utils::Binding::openProject(PrjPath.c_str()) != 0);
167170
}
168171

169172

0 commit comments

Comments
 (0)