Merge pull request #2163 from PhenomRetroShare/Fix_UninitRemoteDirModel

Fix Uninit mEventHandlerId in RemoteDirModel
This commit is contained in:
csoler 2020-12-14 20:52:23 +01:00 committed by GitHub
commit 5d3f5ebcd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ RetroshareDirModel::RetroshareDirModel(bool mode, QObject *parent)
, ageIndicator(IND_ALWAYS)
, RemoteMode(mode)//, nIndex(1), indexSet(1) /* ass zero index cant be used */
, mLastRemote(false), mLastReq(0), mUpdating(false)
, mEventHandlerId(0)
{
#if QT_VERSION < QT_VERSION_CHECK (5, 0, 0)
setSupportedDragActions(Qt::CopyAction);
@ -69,9 +70,9 @@ RetroshareDirModel::RetroshareDirModel(bool mode, QObject *parent)
[this](std::shared_ptr<const RsEvent> event)
{
RsQThreadUtils::postToObject( [this,event]() { handleEvent_main_thread(event); });
},
mEventHandlerId,
RsEventType::SHARED_DIRECTORIES );
}
, mEventHandlerId
, RsEventType::SHARED_DIRECTORIES );
}
RetroshareDirModel::~RetroshareDirModel()