public slots:
void initialize()
{
_session = new CoreSession{_userId, _restoreState, _strictIdentEnabled, this};
connect(_session, &QObject::destroyed, QThread::currentThread(), &QThread::quit);
public slots:
void initialize()
{
_session = new CoreSession{_userId, _restoreState, _strictIdentEnabled, this};
connect(_session, &QObject::destroyed, QThread::currentThread(), &QThread::quit);