[libcalamares] Enforce singleton-ness of CalamaresPython::Helper

- unset instance pointer on destruction
 - make constructor private, and the instance accessor
   should create an instance if there isn't one.
This commit is contained in:
Adriaan de Groot 2018-01-17 06:18:43 -05:00
parent 86b899566e
commit abc6914528
4 changed files with 8 additions and 7 deletions

View file

@ -231,7 +231,9 @@ Helper::Helper( QObject* parent )
}
Helper::~Helper()
{}
{
s_instance = nullptr;
}
boost::python::dict