mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix Uninit mEventHandlerId in RemoteDirModel
This commit is contained in:
parent
d112357b77
commit
81034fae51
@ -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);
|
||||
@ -65,13 +66,13 @@ RetroshareDirModel::RetroshareDirModel(bool mode, QObject *parent)
|
||||
|
||||
mDirDetails.ref = (void*)intptr_t(0xffffffff) ;
|
||||
|
||||
rsEvents->registerEventsHandler(
|
||||
[this](std::shared_ptr<const RsEvent> event)
|
||||
{
|
||||
RsQThreadUtils::postToObject( [this,event]() { handleEvent_main_thread(event); });
|
||||
},
|
||||
mEventHandlerId,
|
||||
RsEventType::SHARED_DIRECTORIES );
|
||||
rsEvents->registerEventsHandler(
|
||||
[this](std::shared_ptr<const RsEvent> event)
|
||||
{
|
||||
RsQThreadUtils::postToObject( [this,event]() { handleEvent_main_thread(event); });
|
||||
}
|
||||
, mEventHandlerId
|
||||
, RsEventType::SHARED_DIRECTORIES );
|
||||
}
|
||||
|
||||
RetroshareDirModel::~RetroshareDirModel()
|
||||
|
Loading…
Reference in New Issue
Block a user